Skip to content

Commit 8060e66

Browse files
committed
also use default settings such as set -euo pipefail for setup.sh
1 parent 8f14e9a commit 8060e66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
# sourceOnce "$dir_of_tegonal_scripts/utility/io.sh"
2828
#
2929
###################################
30+
set -euo pipefail
31+
shopt -s inherit_errexit
32+
unset CDPATH
3033

31-
if ! (($# == 1)); then
34+
if (($# != 1)); then
3235
printf >&2 "\033[0;31mERROR\033[0m: You need to pass the path to the tegonal scripts directory as first argument. Following an example\n"
3336
echo >&2 "source \"\$dir_of_tegonal_scripts/setup.sh\" \"\$dir_of_tegonal_scripts\""
3437
exit 9

0 commit comments

Comments
 (0)