diff --git a/install.sh b/install.sh index 2cb3db1..cbd90fb 100755 --- a/install.sh +++ b/install.sh @@ -49,8 +49,9 @@ if [[ $1 == "dots" ]] || [[ $input =~ "y" ]]; then dest=$XDG_CONFIG_HOME/$dir echo "-> Installing $dir in $dest" + mkdir -p "$dest" # create parents + if [[ -f "./$dir" ]]; then - mkdir -p "$dest" # create parents rm -f "$dest" # delete unused directory cp -f "./$dir" "$dest" # copy actual file else