aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-12-26 06:23:55 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-12-26 06:23:55 +0200
commitebad312dc41719d902e41c29c74c13723f1deab5 (patch)
tree9fd07a2f24883e14b990b576130816485c81150e /install.sh
parentb44bbcf99996e8f0c6a774cc7044ced11949ffb2 (diff)
downloadarching-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
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 5 insertions, 3 deletions
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