d2/ci/release/template/scripts/uninstall.sh
Anmol Sethi 563b45dd01
release/install.sh: Install executable with .exe suffix on Windows
Otherwise Go doesn't let you execute it lol.
2022-12-06 09:04:22 -08:00

19 lines
285 B
Bash
Executable file

#!/bin/sh
set -eu
cd -- "$(dirname "$0")/.."
. ./scripts/lib.sh
main() {
ensure_prefix_sh_c
ensure_os
if [ "$OS" = windows ]; then
"$sh_c" rm -f "$PREFIX/bin/d2.exe"
else
"$sh_c" rm -f "$PREFIX/bin/d2"
fi
"$sh_c" rm -f "$PREFIX/share/man/man1/d2.1"
}
main "$@"