postgres-formula/postgres/templates/mac_shortcut.sh
Imran Iqbal d538798ee4
fix(mac_shortcut.sh): fix shellcheck error
```bash
In postgres/templates/mac_shortcut.sh line 3:
shortcutName='${1}'
             ^----^ SC2016: Expressions don't expand in single quotes, use double quotes for that.
```
2019-12-27 19:59:32 +00:00

7 lines
277 B
Bash
Executable file

#!/usr/bin/env bash
shortcutName="${1}"
app="postgres.app"
Source="/Applications/$app"
Destination="{{ homes }}/{{ user }}/Desktop/${shortcutName}"
/usr/bin/osascript -e "tell application \"Finder\" to make alias file to POSIX file \"$Source\" at POSIX file \"$Destination\""