aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-03-08 10:03:42 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-03-08 10:03:42 +0000
commit999c4413f6a49be96d79166961dc9dd1228e7fcd (patch)
tree013ee5e47924c3547b66db6223bdc5bcc4b88aae
parentb4e204f5958b353838deb9f7fe5439a18d8b6f5d (diff)
downloadalpine-netboot-999c4413f6a49be96d79166961dc9dd1228e7fcd.tar.bz2
alpine-netboot-999c4413f6a49be96d79166961dc9dd1228e7fcd.tar.xz
terminate immediately on error and change log output
-rwxr-xr-xupdate-netboot.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-netboot.sh b/update-netboot.sh
index a23677a..e72c065 100755
--- a/update-netboot.sh
+++ b/update-netboot.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
REPO="http://dl-cdn.alpinelinux.org/alpine"
BRANCHES="edge latest-stable"
@@ -86,7 +86,7 @@ for branch in $BRANCHES; do
mv "$tmpdir" "$IMGDIR"/$branch/$arch
mv "$tmpfile" "$CACHE_DIR"/$branch-$arch.lst
else
- printf "No update found\n\n"
+ printf "No update found\n"
rm -f $tmpfile
fi
done