From c59bbccc97d08e3a71a388f68b3277e88a97e7b7 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 22 Dec 2021 18:14:55 -0300 Subject: [PATCH] Remove test folder --- scripts/install.sh | 2 +- scripts/linkFiles.sh | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 3dc3de7..cd78e29 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -7,7 +7,7 @@ makeInstall() { } downloadAndInstallPackages() { - DOTFILES_CONFIG=$HOME/test/.config + DOTFILES_CONFIG=$HOME/.config cd $DOTFILES_CONFIG diff --git a/scripts/linkFiles.sh b/scripts/linkFiles.sh index 42b83bf..4abce32 100755 --- a/scripts/linkFiles.sh +++ b/scripts/linkFiles.sh @@ -16,7 +16,6 @@ linkFile() { else selectedOption=$(dialog --menu "File already exists: $(basename "$1"), what would you like to do?" 10 60 0 1 "Skip" 2 "Skip all" 3 "Overwrite" 4 "Overwrite all" 5 "Backup" 6 "Backup all" 3>&1 1>&2 2>&3 3>&1) if [ $? -eq 1 ]; then - # if [ "$selectedOption" = "" ]; then exit 0 fi @@ -60,7 +59,7 @@ loopThroughFiles() { fi if [[ -f "$srcFile" ]]; then - linkFile "$srcFile" "$HOME/test/$(basename "${srcFile}")" + linkFile "$srcFile" "$HOME/$(basename "${srcFile}")" fi done @@ -69,14 +68,14 @@ loopThroughFiles() { if [[ -d "$srcFile" ]]; then var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\//, ""); print }') - if [[ ! -d "$HOME/test/$var" ]]; then - mkdir -p "$HOME/test/$var" + if [[ ! -d "$HOME/$var" ]]; then + mkdir -p "$HOME/$var" fi fi if [[ -f "$srcFile" ]]; then var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\//, ""); print }') - linkFile "$srcFile" "$HOME/test/$var" + linkFile "$srcFile" "$HOME/$var" fi done done