diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:23:55 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:23:55 +0200 |
commit | ebad312dc41719d902e41c29c74c13723f1deab5 (patch) | |
tree | 9fd07a2f24883e14b990b576130816485c81150e | |
parent | b44bbcf99996e8f0c6a774cc7044ced11949ffb2 (diff) | |
download | arching-kaos-tools-ebad312dc41719d902e41c29c74c13723f1deab5.tar.gz arching-kaos-tools-ebad312dc41719d902e41c29c74c13723f1deab5.tar.bz2 arching-kaos-tools-ebad312dc41719d902e41c29c74c13723f1deab5.zip |
Fixed logging and assube bash is the default shell
-rwxr-xr-x | install.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |