mirror of
https://github.com/desktop/desktop
synced 2024-08-25 11:17:29 +00:00
26 lines
434 B
Bash
26 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
|