Skip to content

Commit 42dab3c

Browse files
authored
Ensure /usr/local/bin exists for cmdline installs. (#81)
1 parent d947c54 commit 42dab3c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

{{ cookiecutter.format }}/installer/scripts/postinstall

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/sh
22
echo "Post installation process started"
33

4+
if [ ! -d "/usr/local/bin" ]; then
5+
echo "Creating /usr/local/bin directory"
6+
mkdir -p /usr/local/bin
7+
fi
8+
49
echo "Install binary symlink"
510
ln -si "/Library/{{ cookiecutter.formal_name }}/{{ cookiecutter.formal_name }}.app/Contents/MacOS/{{ cookiecutter.formal_name }}" /usr/local/bin/{{ cookiecutter.app_name }}
611

0 commit comments

Comments
 (0)