From ebad312dc41719d902e41c29c74c13723f1deab5 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 26 Dec 2021 06:23:55 +0200 Subject: Fixed logging and assube bash is the default shell --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 77a0dea..31e43d8 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,9 @@ #!/bin/bash +source config.sh logthis(){ - logger -t arching-kaos $1 + echo "Install script: $1" >> $WORKDIR/logs } + HAK=".arching-kaos" logthis "Searching for $HAK folder and files" if [ ! -d $HOME/$HAK ]; then @@ -22,8 +24,8 @@ elif [ $SHELL == "/usr/bin/bash" ]; then SHELLRC='.bashrc' logthis "BASH found"; else - logthis "Unknown shell... skipping installation" - exit; + logthis "Unknown shell... defaulting to bash" + SHELLRC='.bashrc' fi logthis "Searching if rc is already there" grep "source ~/$HAK/rc" $HOME/$SHELLRC > /dev/null 2>&1 -- cgit v1.2.3