aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc.slack-autoupdate2
-rw-r--r--src/slack-autoupdate4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/rc.slack-autoupdate b/src/rc.slack-autoupdate
index 2f17dc9..9563388 100644
--- a/src/rc.slack-autoupdate
+++ b/src/rc.slack-autoupdate
@@ -7,6 +7,8 @@
# will run if found. We recommend placing this under /usr/local/sbin.
#
+export PATH=$PATH:/usr/local/bin:/usr/local/sbin
+
# Where packages are stored pending installation. You can use sub-directories
# to order and group packages.
UPDATE_DIR="/var/spool/slack-autoupdate"
diff --git a/src/slack-autoupdate b/src/slack-autoupdate
index a246210..86ca9e9 100644
--- a/src/slack-autoupdate
+++ b/src/slack-autoupdate
@@ -206,7 +206,9 @@ fi
if [ -f "$UPDATE_ERROR" ]; then
mv "$UPDATE_ERROR" "$PACKAGE_DIR"
- mv "$UPDATE_INFO" "$PACKAGE_DIR"
+ if [ -f "$UPDATE_INFO" ]; then
+ mv "$UPDATE_INFO" "$PACKAGE_DIR"
+ fi
exit 1
fi