1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00

Some patching

This commit is contained in:
Steffo 2021-07-15 03:05:17 +02:00
parent 032c04ef08
commit 607f8b702b
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -7,11 +7,6 @@ function dotfish
echo_progress "Updating fish config for: " echo_progress "Updating fish config for: "
echo_highlight "$TARGET" \n echo_highlight "$TARGET" \n
if test -z $TARGET
echo_progress "Couldn't detect target, exiting..." \n
return 1
end
set -g FISHCONFIG ~(echo $TARGET)/.config/fish set -g FISHCONFIG ~(echo $TARGET)/.config/fish
echo_progress "Destination directory is: " echo_progress "Destination directory is: "
@ -23,8 +18,8 @@ function dotfish
echo_progress "Deleting old config..." \n echo_progress "Deleting old config..." \n
rm -rf "$FISHCONFIG" rm -rf "$FISHCONFIG"
else else
echo_progress "Deletion was refused, exiting..." \n echo_progress "Deletion was refused, skipping..." \n
return 2 continue
end end
end end