From c22266048289c15f3a0cfcc7568e794b137603bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 16 Sep 2013 21:36:23 +0200 Subject: [PATCH] Moved backup folder in makesymlinks.bash. --- scripts/makesymlinks.bash | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/makesymlinks.bash b/scripts/makesymlinks.bash index 269cc2e..726119c 100755 --- a/scripts/makesymlinks.bash +++ b/scripts/makesymlinks.bash @@ -6,12 +6,13 @@ config_dir="$HOME/dotfiles/" mapping_file="$config_dir/MAPPING" # backup directory, files that would otherwise be overwritten go there -backup_dir="$HOME/dotfiles.bak/" +backup_dir="$HOME/.dotfiles.bak/" # the following folders inside $config_dir will be inspected and the # contents symlinked: -symlink_folders="bash git i3 vim zsh conky terminator" +symlink_folders='bash git i3 vim zsh conky terminator' +MAPPING_SEPARATOR='::' path_combine() { @@ -24,7 +25,7 @@ DEFAULT_ROOT="$HOME" # folder::root get_mapping() { - entry="$(grep -E "^$1::.+$" "$mapping_file" | head -n1 | grep -Eo "::.+$" | cut -c 3-)" + entry="$(grep -E "^$1$MAPPING_SEPARATOR.+$" "$mapping_file" | head -n1 | grep -Eo "$MAPPING_SEPARATOR.+$" | cut -c 3-)" echo "$entry" }