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.
```
This commit is contained in:
Imran Iqbal
2019-12-27 19:59:32 +00:00
parent 9cc95c0209
commit d538798ee4

View File

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