aboutsummaryrefslogtreecommitdiff
path: root/init.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 12:41:24 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 12:41:24 +0300
commita53f4930669fe6a1bec6dea3ce76f1a92bbe18ec (patch)
tree7749c25933bd170a58738467ee1ecd25328404a4 /init.sh
parent5f7fb5e7a9caaf6f5fe4d994e07bef367d41efd4 (diff)
downloadarching-kaos-tools-a53f4930669fe6a1bec6dea3ce76f1a92bbe18ec.tar.gz
arching-kaos-tools-a53f4930669fe6a1bec6dea3ce76f1a92bbe18ec.tar.bz2
arching-kaos-tools-a53f4930669fe6a1bec6dea3ce76f1a92bbe18ec.zip
Replaced double brackets with single ones
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/init.sh b/init.sh
index 9458140..e1c42b1 100755
--- a/init.sh
+++ b/init.sh
@@ -50,13 +50,13 @@ printf "Initialization started... \n"
ak_gpg_check_or_create
-if [[ -f $AK_ZGENESIS ]] ; then printf "%s" "$(ipfs add -q $AK_GENESIS)" > $AK_ZGENESIS;fi
-if [[ ! -f $AK_ZCHAIN ]] ; then printf "%s" "$(ipfs key gen zchain)" > $AK_ZCHAIN;fi
-if [[ ! -f $AK_ZLATEST ]] ; then cp $AK_ZGENESIS $AK_ZLATEST;fi
-if [[ ! -f $AK_ZCHAINASC ]] ; then gpg2 --homedir $AK_GPGHOME -bao $AK_ZCHAINASC $AK_ZCHAIN;fi
-if [[ ! -f $AK_ZZCHAIN ]] ; then printf "%s" "$(ipfs add -q $AK_ZCHAINASC)" > $AK_ZZCHAIN;fi
-if [[ ! -f $AK_GENESISASC ]] ; then gpg2 --homedir $AK_GPGHOME -bao $AK_GENESISASC $AK_GENESIS;fi
-if [[ ! -f $AK_ZGENESISASC ]] ; then printf "%s" "$(ipfs add -q $AK_GENESISASC)" > $AK_ZGENESISASC;fi
+if [ -f $AK_ZGENESIS ] ; then printf "%s" "$(ipfs add -q $AK_GENESIS)" > $AK_ZGENESIS;fi
+if [ ! -f $AK_ZCHAIN ] ; then printf "%s" "$(ipfs key gen zchain)" > $AK_ZCHAIN;fi
+if [ ! -f $AK_ZLATEST ] ; then cp $AK_ZGENESIS $AK_ZLATEST;fi
+if [ ! -f $AK_ZCHAINASC ] ; then gpg2 --homedir $AK_GPGHOME -bao $AK_ZCHAINASC $AK_ZCHAIN;fi
+if [ ! -f $AK_ZZCHAIN ] ; then printf "%s" "$(ipfs add -q $AK_ZCHAINASC)" > $AK_ZZCHAIN;fi
+if [ ! -f $AK_GENESISASC ] ; then gpg2 --homedir $AK_GPGHOME -bao $AK_GENESISASC $AK_GENESIS;fi
+if [ ! -f $AK_ZGENESISASC ] ; then printf "%s" "$(ipfs add -q $AK_GENESISASC)" > $AK_ZGENESISASC;fi
ipfs_zarchive_check_or_mkdir
@@ -70,7 +70,7 @@ ipfs_zlatest_check_or_create
binfiles=$(ls -1 $(pwd)/bin)
for b in $binfiles
do
- if [[ ! -L $AK_BINDIR/$b ]]
+ if [ ! -L $AK_BINDIR/$b ]
then
printf "Creating symlink to %s..." "$b"
ln -s $(pwd)/bin/$b $AK_BINDIR/$b