Skip to content

Commit

Permalink
fix(mac_shortcut.sh): fix shellcheck error
Browse files Browse the repository at this point in the history
```bash
In postgres/templates/mac_shortcut.sh line 3:
shortcutName='${1}'
             ^----^ SC2016: Expressions don't expand in single quotes, use double quotes for that.
```
  • Loading branch information
myii committed Dec 27, 2019
1 parent 9cc95c0 commit d538798
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions postgres/templates/mac_shortcut.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env bash

shortcutName='${1}'
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\""

0 comments on commit d538798

Please sign in to comment.