Commit 7ef38319 authored by Antoine Le Gonidec's avatar Antoine Le Gonidec

2.10.4 — main script — Fix wrong usage of 'return' instead of 'exit'

parent 8b4a0b63
Pipeline #85419 passed with stage
in 26 seconds
......@@ -26,7 +26,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
if [ -z "$PLAYIT_LIB2" ]; then
printf '\n\033[1;31mError:\033[0m\n'
printf 'libplayit2.sh not found.\n'
return 1
exit 1
fi
fi
# shellcheck source=play.it-2/lib/libplayit2.sh
......@@ -50,7 +50,7 @@ if [ ! -f "$INPUT_FILE" ]; then
esac
# shellcheck disable=SC2059
printf "$string" "$INPUT_FILE"
return 1
exit 1
fi
# Locate script by file name
......@@ -99,7 +99,7 @@ if [ -z "$SCRIPT" ]; then
esac
# shellcheck disable=SC2059
printf "$string" "$FILE_NAME"
return 1
exit 1
fi
export PLAYIT_LIB2
......
......@@ -4,6 +4,8 @@
* Do not let empty dirs lingering after uninstallation using make
* main script: Fix wrong usage of 'return' instead of 'exit'
2.10.3
* write_bin - init_prefix_files: Do not ignore symbolic links in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment