feat: ✨ stop deleting or overwriting config file
This commit is contained in:
parent
53cc21a6f1
commit
782be942eb
@ -8,8 +8,13 @@ if not test -d "/etc/snap-pac-uki"
|
||||
echo "created config dir."
|
||||
end
|
||||
|
||||
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…
Reference in New Issue
Block a user