summaryrefslogtreecommitdiffhomepage
path: root/once
diff options
context:
space:
mode:
Diffstat (limited to 'once')
-rwxr-xr-xonce/update.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/once/update.sh b/once/update.sh
index 748f65b..6385e2e 100755
--- a/once/update.sh
+++ b/once/update.sh
@@ -10,7 +10,13 @@ else
mkdir -p "$SYSROOT" || exit 2
fi
-for tarball in /updates/*.tar.gz; do
+tarballs=$(ls /updates/*.tar.gz 2>/dev/null)
+
+if [ "$tarballs" = '/updates/*.tar.gz' ]; then
+ exit 0
+fi
+
+for tarball in $tarballs; do
tarball="${tarball##*/}"
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@