diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-08 10:03:42 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-08 10:03:42 +0000 |
commit | 999c4413f6a49be96d79166961dc9dd1228e7fcd (patch) | |
tree | 013ee5e47924c3547b66db6223bdc5bcc4b88aae | |
parent | b4e204f5958b353838deb9f7fe5439a18d8b6f5d (diff) | |
download | alpine-netboot-999c4413f6a49be96d79166961dc9dd1228e7fcd.tar.bz2 alpine-netboot-999c4413f6a49be96d79166961dc9dd1228e7fcd.tar.xz |
terminate immediately on error and change log output
-rwxr-xr-x | update-netboot.sh | 4 |
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 |