diff --git a/profile.d/filefct.sh b/profile.d/filefct.sh index caeddc6..e4dead5 100644 --- a/profile.d/filefct.sh +++ b/profile.d/filefct.sh @@ -299,7 +299,7 @@ rmspc() ( local lastdir=$f (( verb )) && disp I "Entering directory $(pwd)/$f ..." - pushd "$f" >/dev/null || exit 1 + pushd "$f" >/dev/null || return 1 if (( substchar_set )); then rmspc ${recurs:+-r} -c "$substchar" ${verb:+-v} ${shell:+-s} @@ -307,7 +307,7 @@ rmspc() rmspc ${recurs:+-r} ${verb:+-v} ${shell:+-s} fi - popd >/dev/null || exit 1 + popd >/dev/null || return 1 (( verb )) && disp I "Leaving directory $(pwd)/$lastdir" ) fi