diff options
| author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 15:52:44 +0300 | 
|---|---|---|
| committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 15:52:44 +0300 | 
| commit | 2183487f5b28d66e7b712baecdbbc947caf9a5e7 (patch) | |
| tree | e5bc22a98b19b458a431d4e6079127f3781b36f7 | |
| parent | 1cd736b41fa4aa94b9d7678729c68a67321d5596 (diff) | |
| download | arching-kaos-tools-2183487f5b28d66e7b712baecdbbc947caf9a5e7.tar.gz arching-kaos-tools-2183487f5b28d66e7b712baecdbbc947caf9a5e7.tar.bz2 arching-kaos-tools-2183487f5b28d66e7b712baecdbbc947caf9a5e7.zip | |
Refactoring
| -rwxr-xr-x | bin/ak-enter | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/bin/ak-enter b/bin/ak-enter index be20476..51148a6 100755 --- a/bin/ak-enter +++ b/bin/ak-enter @@ -67,7 +67,7 @@ while [ "$#" ]; do              shift              ol=$1              entrance="$(_ak_ipns_resolve $1)" -            if [ "$?" -ne 0 ] +            if [ $? -ne 0 ]              then                  logit "ERROR" "Could not resolve IPNS name"                  exit 1 @@ -76,11 +76,11 @@ while [ "$#" ]; do              ;;          *)              test="$1" -            if [ ! -z "$test" ] && [ "$fromIpns" == "0" ] +            if [ ! -z "$test" ] && [ $fromIpns -eq 0 ]              then                  _ak_ipfs_cid_v0_check "$test"                  entrance="$test" -            elif [ -z "$entrance" ] && [ "$fromIpns" == "1" ] +            elif [ -z "$entrance" ] && [ $fromIpns -eq 1 ]              then                  entrance="$(cat $AK_ZLATEST)"              fi @@ -106,13 +106,13 @@ counter=0  # We break the loop from inside the loop  while true && [ $limit="0" ]  do -    if [ $counter == 0 ] +    if [ $counter -eq 0 ]      then          echo -n '['      fi -    counter=$(expr $counter + 1) +    counter=$(($counter + 1))      _ak_zblock_show "$zblock" -    if [ "$limit" != "0" ] && [ "$limit" == "$counter" ] +    if [ $limit -ne 0 ] && [ $limit -eq $counter ]      then          echo -n ']'          exit 0 | 
