Skip to content

Commit a3baad8

Browse files
committed
import: avoid set -e to prevent probe failures aborting run; ensure exit 0
1 parent 5682244 commit a3baad8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/import_installed.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22

3-
set -e
3+
# 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
46

57
# Colors for output
68
GREEN='\033[0;32m'
@@ -194,3 +196,6 @@ else
194196
fi
195197

196198
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

Comments
 (0)