diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-02-01 03:37:57 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-02-01 03:37:57 +0200 |
commit | 558af1306734d68885426e89a5de343b72302e11 (patch) | |
tree | 505f464ceec86d302571c622e835ed13deee0955 /bin | |
parent | 49306c23a40eb579ab872b4e7c8237aa03d53294 (diff) | |
download | arching-kaos-tools-558af1306734d68885426e89a5de343b72302e11.tar.gz arching-kaos-tools-558af1306734d68885426e89a5de343b72302e11.tar.bz2 arching-kaos-tools-558af1306734d68885426e89a5de343b72302e11.zip |
Reverse if statement to avoid else
Diffstat (limited to 'bin')
-rw-r--r-- | bin/profile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/profile b/bin/profile index 0d0025d..8c32695 100644 --- a/bin/profile +++ b/bin/profile @@ -180,13 +180,12 @@ EOF exit 2 fi pack_z_block "profile/add" data - if [ $? == 0 ] + if [ "$?" -ne 0 ] then - echo "Profile added successfully" - else echo "error??" exit 1 fi + echo "Profile added successfully" } usage(){ echo "Usage:" |