aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-16 00:52:26 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-16 00:52:26 +0200
commitc7c3081b734ad74bb2a303ee17899591b10b3f3f (patch)
tree30fed7b9edc13e69a2c32f64d307028e7085ddd5 /install.sh
parentec5470a427d0e5f65d9f0ab9d55070af7c85f0be (diff)
downloadarching-kaos-tools-c7c3081b734ad74bb2a303ee17899591b10b3f3f.tar.gz
arching-kaos-tools-c7c3081b734ad74bb2a303ee17899591b10b3f3f.tar.bz2
arching-kaos-tools-c7c3081b734ad74bb2a303ee17899591b10b3f3f.zip
More bug fixes
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/install.sh b/install.sh
index 08a7fde..a69df2a 100755
--- a/install.sh
+++ b/install.sh
@@ -73,8 +73,8 @@ fi
touch $AK_LOGSFILE
-source ./lib/_ak_log
-source ./lib/_ak_script
+source $WHEREAMI/lib/_ak_log
+source $WHEREAMI/lib/_ak_script
_ak_check_and_create_dir $AK_CONFIGDIR
_ak_check_and_create_dir $AK_BINDIR
@@ -202,41 +202,41 @@ fi
HAK=".arching-kaos"
-logthis "Searching for $HAK folder and files"
+_ak_log_debug "Searching for $HAK folder and files"
if [ ! -d $HOME/$HAK ]; then
mkdir $HOME/$HAK
- logthis "$HAK created in $HOME";
+ _ak_log_debug "$HAK created in $HOME";
fi
-logthis "Searching for rc"
+_ak_log_debug "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";
+ _ak_log_debug "New rc export to file";
fi
-logthis "Searching for shell"
+_ak_log_debug "Searching for shell"
if [ $SHELL == "/usr/bin/zsh" ]
then
SHELLRC=".zshrc"
- logthis "ZSH found";
+ _ak_log_debug "ZSH found";
elif [ $SHELL == "/usr/bin/bash" ]
then
SHELLRC='.bashrc'
- logthis "BASH found";
+ _ak_log_debug "BASH found";
else
- logthis "Unknown shell... defaulting to ~/.profile"
+ _ak_log_debug "Unknown shell... defaulting to ~/.profile"
SHELLRC='.profile'
fi
-logthis "Searching if rc is already there"
+_ak_log_debug "Searching if rc is already there"
grep "source $HOME/$HAK/rc" $HOME/$SHELLRC > /dev/null 2>&1
if [ $? -eq 0 ]
then
- logthis "Already installed";
+ _ak_log_debug "Already installed";
else
echo "source $HOME/$HAK/rc" >> $HOME/$SHELLRC
- logthis "$HAK installed at $HOME and sourced it in $SHELLRC"
+ _ak_log_debug "$HAK installed at $HOME and sourced it in $SHELLRC"
source $HOME/$HAK/rc;
fi