Fix issues in new .t script

This commit is contained in:
Tobias Reisinger 2023-10-30 22:54:28 +01:00
parent 478f6722ba
commit e6a3176cdd
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
declare -A mapper=(
[".e"]="$HOME/.bin/.e"
[".t"]="$HOME/.bin/.t"
["alacritty"]="$HOME/.config/alacritty/alacritty.yml"
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
["autostart"]="$HOME/.bin/autostart-manage"

View file

@ -30,11 +30,11 @@ fi
target="$XDG_CONFIG_HOME/templates/$target"
if [ -f "$target" ]
then
cp "$target" .
cp -i "$target" .
echo "Template copied."
elif [ -d "$target" ]
then
cp -r "$target/*" .
cp -irT "$target" .
echo "Template copied."
else
echo "Error copying template."