summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-10-12 23:35:35 +0000
committermidipix <writeonce@midipix.org>2020-10-12 23:47:28 +0000
commitee6784aa2fbb44cb656eba7c1758fea5d3532473 (patch)
tree131990dabaf8d1bac7091b0b9e0b0f8f0b96d31c
parent67d57a4be8f871fd0a3ca002beb1f7721a673d05 (diff)
downloadmpackage-ee6784aa2fbb44cb656eba7c1758fea5d3532473.tar.bz2
mpackage-ee6784aa2fbb44cb656eba7c1758fea5d3532473.tar.xz
once/update.sh: properly handle the nothing-to-do case.
-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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@