From ac66e896dd10317a1faff0fb72bb159d249d21dc Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 1 Apr 2026 15:56:48 +0200 Subject: [PATCH] exit -> return --- profile.d/filefct.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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