Fix issues in new .t script
This commit is contained in:
parent
478f6722ba
commit
e6a3176cdd
2 changed files with 3 additions and 2 deletions
1
.bin/.e
1
.bin/.e
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
declare -A mapper=(
|
declare -A mapper=(
|
||||||
[".e"]="$HOME/.bin/.e"
|
[".e"]="$HOME/.bin/.e"
|
||||||
|
[".t"]="$HOME/.bin/.t"
|
||||||
["alacritty"]="$HOME/.config/alacritty/alacritty.yml"
|
["alacritty"]="$HOME/.config/alacritty/alacritty.yml"
|
||||||
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
|
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
|
||||||
["autostart"]="$HOME/.bin/autostart-manage"
|
["autostart"]="$HOME/.bin/autostart-manage"
|
||||||
|
|
4
.bin/.t
4
.bin/.t
|
@ -30,11 +30,11 @@ fi
|
||||||
target="$XDG_CONFIG_HOME/templates/$target"
|
target="$XDG_CONFIG_HOME/templates/$target"
|
||||||
if [ -f "$target" ]
|
if [ -f "$target" ]
|
||||||
then
|
then
|
||||||
cp "$target" .
|
cp -i "$target" .
|
||||||
echo "Template copied."
|
echo "Template copied."
|
||||||
elif [ -d "$target" ]
|
elif [ -d "$target" ]
|
||||||
then
|
then
|
||||||
cp -r "$target/*" .
|
cp -irT "$target" .
|
||||||
echo "Template copied."
|
echo "Template copied."
|
||||||
else
|
else
|
||||||
echo "Error copying template."
|
echo "Error copying template."
|
||||||
|
|
Loading…
Reference in a new issue