From 5f948ca7af0302e1396c0a22f9b0ea36689c3ceb Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Jan 2024 12:03:46 +0100 Subject: [PATCH] Update install.sh --- src/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index ae11306..79f8692 100644 --- a/src/install.sh +++ b/src/install.sh @@ -122,21 +122,21 @@ if [ ! -f "$ISO" ]; then fi - [ ! -f "$ISO" ] && echo && error "Failed to download $VERSION" && exit 61 + [ ! -f "$ISO" ] && error "Failed to download $VERSION" && exit 61 fi SIZE=$(stat -c%s "$ISO") SIZE_GB=$(( (SIZE + 1073741823)/1073741824 )) if ((SIZE<10000000)); then - echo && error "Invalid ISO file: Size is smaller than 10 MB" && exit 62 + error "Invalid ISO file: Size is smaller than 10 MB" && exit 62 fi SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1) SPACE_GB=$(( (SPACE + 1073741823)/1073741824 )) if (( SIZE > SPACE )); then - echo && error "Not enough free space in $STORAGE, have $SPACE_GB GB available but need at least $SIZE_GB GB." && exit 63 + error "Not enough free space in $STORAGE, have $SPACE_GB GB available but need at least $SIZE_GB GB." && exit 63 fi if [ -n "$CUSTOM" ]; then @@ -293,7 +293,7 @@ SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1) SPACE_GB=$(( (SPACE + 1073741823)/1073741824 )) if (( SIZE > SPACE )); then - echo && error "Not enough free space in $STORAGE, have $SPACE_GB GB available but need at least $SIZE_GB GB." && exit 63 + error "Not enough free space in $STORAGE, have $SPACE_GB GB available but need at least $SIZE_GB GB." && exit 63 fi MSG="Generating new ISO image for installation..."