diff options
author | midipix <writeonce@midipix.org> | 2020-10-12 23:35:35 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-10-12 23:47:28 +0000 |
commit | ee6784aa2fbb44cb656eba7c1758fea5d3532473 (patch) | |
tree | 131990dabaf8d1bac7091b0b9e0b0f8f0b96d31c /once | |
parent | 67d57a4be8f871fd0a3ca002beb1f7721a673d05 (diff) | |
download | mpackage-ee6784aa2fbb44cb656eba7c1758fea5d3532473.tar.bz2 mpackage-ee6784aa2fbb44cb656eba7c1758fea5d3532473.tar.xz |
once/update.sh: properly handle the nothing-to-do case.
Diffstat (limited to 'once')
-rwxr-xr-x | once/update.sh | 8 |
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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |