aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-02-02 12:28:00 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-02-02 12:28:00 +0100
commit3947185069f3e21feeb76ee45d2d5ad4d67e1263 (patch)
treec6d3cfe24aa3a4cfcc740a23f4cefdb68460a1cd /install.sh
parent64f3ae04858093a2b0a7c066f402f745ec1985ea (diff)
downloaddotfiles-3947185069f3e21feeb76ee45d2d5ad4d67e1263.tar.gz
csgo config
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 8554980..af49f6c 100755
--- a/install.sh
+++ b/install.sh
@@ -16,6 +16,7 @@ CONFIGS=( ["sway"]=".config"
["sxhkd"]=".config"
["deadd"]=".config"
["rofi"]=".config"
+ ["autoload.cfg"]=".local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/cfg/"
[".vim"]="."
[".xinitrc"]="."
[".bashrc"]="."
@@ -104,12 +105,12 @@ selector() {
#1: source 2: destination
link() {
- if [ -e $2 ]; then
+ if [ -e "$2" ]; then
if yes_no "$(basename $2) exists. Overwrite?"; then
- if [ -d $2 ]; then
- rm -R $2
+ if [ -d "$2" ]; then
+ rm -R "$2"
else
- rm $2
+ rm "$2"
fi
else
return
@@ -120,7 +121,7 @@ link() {
}
choose_target() {
- if [ ! -z ${CONFIGS[$1]} ]; then
+ if [ ! -z "${CONFIGS[$1]}" ]; then
echo "Install $(pwd)/$1 to $HOME/${CONFIGS[$1]}/$1"
link "$(pwd)/$1" "$HOME/${CONFIGS[$1]}/$1"
elif [ ! -z "${SETS[$1]}" ]; then