feat: stop deleting or overwriting config file

main
Adrian Wannenmacher 1 year ago
parent 53cc21a6f1
commit 782be942eb
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
  1. 9
      install.fish
  2. 3
      uninstall.fish

@ -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."

@ -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

Loading…
Cancel
Save