11
rated 0 times
[
11]
[
0]
/ answers: 1 / hits: 847
/ 1 Year ago, mon, february 27, 2023, 1:40:28
pwd | grep 'database$'
if [ "$?" = 0 ]; then
echo "has db"
cd ..
cd ..
echo "after has db"
fi
after I execute it I see
has db
after has db
and I'm still in the same dir, how to fix it?
More From » bash