From 999c4413f6a49be96d79166961dc9dd1228e7fcd Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 8 Mar 2018 10:03:42 +0000 Subject: terminate immediately on error and change log output --- update-netboot.sh | 4 ++-- 1 file 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 -- cgit v1.2.3