Remove test folder

This commit is contained in:
Santiago Lo Coco 2021-12-22 18:14:55 -03:00
parent abc2aa2ce1
commit c59bbccc97
2 changed files with 5 additions and 6 deletions

View File

@ -7,7 +7,7 @@ makeInstall() {
}
downloadAndInstallPackages() {
DOTFILES_CONFIG=$HOME/test/.config
DOTFILES_CONFIG=$HOME/.config
cd $DOTFILES_CONFIG

View File

@ -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