diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-07 01:41:33 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-07 01:41:33 +0300 |
commit | 19cb280a2cc8da730b2e6797aede1b36253e6714 (patch) | |
tree | 9ae72bba54856d99a00cead27455556906c6e641 /install.sh | |
parent | ab9b088ad0c097f803bd489a68a7f45db9af8570 (diff) | |
download | arching-kaos-tools-19cb280a2cc8da730b2e6797aede1b36253e6714.tar.gz arching-kaos-tools-19cb280a2cc8da730b2e6797aede1b36253e6714.tar.bz2 arching-kaos-tools-19cb280a2cc8da730b2e6797aede1b36253e6714.zip |
Fixes and updates in tests
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -93,7 +93,7 @@ checkIfSudoAvailable(){ checkIfSudoAvailable # Depedencies check and install -declare -a depedencies=("curl" "wget" "bash" "jq" "npm" "gpg" "git" "make" "screen") +declare -a depedencies=("curl" "wget" "bash" "jq" "npm" "gpg" "git" "make" "screen" "gpg-agent") for dep in "${depedencies[@]}" do printf "Checking for %s..." "$dep" @@ -171,37 +171,44 @@ if [ ! -d $HOME/$HAK ]; then mkdir $HOME/$HAK logthis "$HAK created in $HOME"; fi + logthis "Searching for rc" if [ ! -f $HOME/$HAK/rc ]; then echo export PATH=$PATH:$HOME/$HAK/bin > $HOME/$HAK/rc cat config.sh >> $HOME/$HAK/rc logthis "New rc export to file"; fi + logthis "Searching for shell" -if [ $SHELL == "/usr/bin/zsh" ]; then +if [ $SHELL == "/usr/bin/zsh" ] +then SHELLRC=".zshrc" logthis "ZSH found"; -elif [ $SHELL == "/usr/bin/bash" ]; then +elif [ $SHELL == "/usr/bin/bash" ] +then SHELLRC='.bashrc' logthis "BASH found"; else logthis "Unknown shell... defaulting to bash" SHELLRC='.bashrc' fi + logthis "Searching if rc is already there" grep "source $HOME/$HAK/rc" $HOME/$SHELLRC > /dev/null 2>&1 -if [ $? == 0 ]; then +if [ $? -eq 0 ] +then logthis "Already installed"; else echo "source $HOME/$HAK/rc" >> $HOME/$SHELLRC logthis "$HAK installed at $HOME and sourced it in $SHELLRC" source $HOME/$HAK/rc; fi -sh update.sh -sh ipfs-check-install-setup-init-update + +bash update.sh +bash ipfs-check-install-setup-init-update source ./config.sh source $HOME/$SHELLRC -sh init.sh +bash init.sh cd api npm i cd .. |