We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5682244 commit a3baad8Copy full SHA for a3baad8
1 file changed
src/import_installed.sh
@@ -1,6 +1,8 @@
1
#!/bin/bash
2
3
-set -e
+# Do not exit the whole script on non-zero exit of commands that are used
4
+# for probing remote services; treat unset variables as errors.
5
+set -u
6
7
# Colors for output
8
GREEN='\033[0;32m'
@@ -194,3 +196,6 @@ else
194
196
fi
195
197
198
echo -e "\n${GREEN}Done!${NC} Added $count new packages to $PACKAGES_CONF"
199
+
200
+# Explicit successful exit; avoid relying on `set -e` behavior.
201
+exit 0
0 commit comments