chore(hooks): make skipped/completed logic more intuitive

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/2551/head
Josh 3 months ago committed by GitHub
parent e096ef691a
commit dbd693dc67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -50,10 +50,10 @@ run_path() {
echo "==> Finished executing the script: \"${script_file_path}\""
done
if [ "$found" -lt "1" ]; then
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
if [ "$found" -gt "0" ]; then
echo "=> Completed executing scripts in the \"$1\" folder"
else
echo "=> Completed executing scripts in the \"$1\" folder"
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
fi
)
}

Loading…
Cancel
Save