Remove test folder
This commit is contained in:
parent
abc2aa2ce1
commit
c59bbccc97
|
@ -7,7 +7,7 @@ makeInstall() {
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadAndInstallPackages() {
|
downloadAndInstallPackages() {
|
||||||
DOTFILES_CONFIG=$HOME/test/.config
|
DOTFILES_CONFIG=$HOME/.config
|
||||||
|
|
||||||
cd $DOTFILES_CONFIG
|
cd $DOTFILES_CONFIG
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ linkFile() {
|
||||||
else
|
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)
|
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 [ $? -eq 1 ]; then
|
||||||
# if [ "$selectedOption" = "" ]; then
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -60,7 +59,7 @@ loopThroughFiles() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$srcFile" ]]; then
|
if [[ -f "$srcFile" ]]; then
|
||||||
linkFile "$srcFile" "$HOME/test/$(basename "${srcFile}")"
|
linkFile "$srcFile" "$HOME/$(basename "${srcFile}")"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -69,14 +68,14 @@ loopThroughFiles() {
|
||||||
if [[ -d "$srcFile" ]]; then
|
if [[ -d "$srcFile" ]]; then
|
||||||
var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\//, ""); print }')
|
var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\//, ""); print }')
|
||||||
|
|
||||||
if [[ ! -d "$HOME/test/$var" ]]; then
|
if [[ ! -d "$HOME/$var" ]]; then
|
||||||
mkdir -p "$HOME/test/$var"
|
mkdir -p "$HOME/$var"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$srcFile" ]]; then
|
if [[ -f "$srcFile" ]]; then
|
||||||
var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\//, ""); print }')
|
var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\//, ""); print }')
|
||||||
linkFile "$srcFile" "$HOME/test/$var"
|
linkFile "$srcFile" "$HOME/$var"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue