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."
|
echo "created config dir."
|
||||||
end
|
end
|
||||||
|
|
||||||
cp ./src/config.fish /etc/snap-pac-uki/config.fish
|
if not test -f "/etc/snap-pac-uki/config.fish"
|
||||||
echo "installed config script."
|
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/
|
cp ./pacman/* /usr/share/libalpm/hooks/
|
||||||
echo "installed pacman hooks."
|
echo "installed pacman hooks."
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
rm /usr/local/bin/snap-pac-uki
|
rm /usr/local/bin/snap-pac-uki
|
||||||
echo "removed script."
|
echo "removed script."
|
||||||
|
|
||||||
rm /etc/snap-pac-uki/config.fish
|
|
||||||
echo "removed config script."
|
|
||||||
|
|
||||||
for name in (ls ./pacman)
|
for name in (ls ./pacman)
|
||||||
rm /usr/share/libalpm/hooks/$name
|
rm /usr/share/libalpm/hooks/$name
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user