aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-02 05:57:34 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-02 05:57:34 +0200
commit69ec28812cc1f6c68f139bbc93e95ab4424f8859 (patch)
tree5931cd2dc2322bb9d56fd18d5dc9853c2555a86e /bin
parentfe55a20c1d3d5eca8dd069167a444a1d82328294 (diff)
downloadarching-kaos-tools-69ec28812cc1f6c68f139bbc93e95ab4424f8859.tar.gz
arching-kaos-tools-69ec28812cc1f6c68f139bbc93e95ab4424f8859.tar.bz2
arching-kaos-tools-69ec28812cc1f6c68f139bbc93e95ab4424f8859.zip
Exit if no value given to rebase onto
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-zchain-rebase1
1 files changed, 1 insertions, 0 deletions
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