mirror of
https://github.com/desktop/desktop
synced 2024-11-05 20:49:32 +00:00
25 lines
434 B
Bash
25 lines
434 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PROFILE_D_FILE="/etc/profile.d/github-desktop.sh"
|
|
INSTALL_DIR="/opt/${productFilename}"
|
|
SCRIPT=$"#!/bin/sh
|
|
export PATH=\"$INSTALL_DIR:\$PATH\""
|
|
|
|
case "$1" in
|
|
configure)
|
|
echo "$SCRIPT" > "${PROFILE_D_FILE}";
|
|
. "${PROFILE_D_FILE}";
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|