feat: stop deleting or overwriting config file

This commit is contained in:
Adrian Wannenmacher 2021-06-18 20:02:03 +02:00
parent 53cc21a6f1
commit 782be942eb
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
2 changed files with 7 additions and 5 deletions

View File

@ -8,8 +8,13 @@ if not test -d "/etc/snap-pac-uki"
echo "created config dir."
end
cp ./src/config.fish /etc/snap-pac-uki/config.fish
echo "installed config script."
if not test -f "/etc/snap-pac-uki/config.fish"
cp ./src/config.fish /etc/snap-pac-uki/config.fish
echo "installed config script."
else
cp ./src/config.fish /etc/snap-pac-uki/config-new.fish
echo "found existing config script -> installed as -new file."
end
cp ./pacman/* /usr/share/libalpm/hooks/
echo "installed pacman hooks."

View File

@ -3,9 +3,6 @@
rm /usr/local/bin/snap-pac-uki
echo "removed script."
rm /etc/snap-pac-uki/config.fish
echo "removed config script."
for name in (ls ./pacman)
rm /usr/share/libalpm/hooks/$name
end