From 69ec28812cc1f6c68f139bbc93e95ab4424f8859 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 2 Mar 2024 05:57:34 +0200 Subject: Exit if no value given to rebase onto --- bin/ak-zchain-rebase | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/ak-zchain-rebase b/bin/ak-zchain-rebase index e5d9b52..a798fbe 100755 --- a/bin/ak-zchain-rebase +++ b/bin/ak-zchain-rebase @@ -14,6 +14,7 @@ usage(){ exit 0 } rebase (){ + if [ ! -n "$1" ]; then exit 1; fi ZTARGET="$1" echo "Reseting ZLATEST to ZTARGET" echo $ZTARGET > $AK_ZLATEST -- cgit v1.2.3