mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 02:44:01 +01:00
18 lines
312 B
Plaintext
18 lines
312 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
case "$1" in
|
||
|
upgrade|failed-upgrade|abort-install|abort-upgrade)
|
||
|
;;
|
||
|
remove|purge|disappear)
|
||
|
if which remove-shell >/dev/null && [ -f /etc/shells ]; then
|
||
|
remove-shell /usr/bin/nu
|
||
|
fi
|
||
|
;;
|
||
|
*)
|
||
|
echo "postrm called with unknown argument \`$1'" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|