Skip to content

Commit

Permalink
provision script to use snip instead of snipr
Browse files Browse the repository at this point in the history
  • Loading branch information
codeitlikemiley committed Dec 18, 2023
1 parent 3f0aef7 commit 7d13e3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ USER_HOME=$(eval echo ~$REAL_USER)

# Check if the ~/.local/bin directory exists, if not, create it
if [ ! -d "$USER_HOME/.local/bin" ]; then
mkdir -p "$USER_HOME/.local/bin"
mkdir -p "$USER_HOME/.local/bin"
fi

# delete the old symlink if it exists
if [ -L "$USER_HOME/.local/bin/snip" ]; then
rm "$USER_HOME/.local/bin/snip"
rm "$USER_HOME/.local/bin/snip"
fi


# Create the symlink in ~/.local/bin
ln -s "/Applications/snip.app/Contents/MacOS/snip" "$USER_HOME/.local/bin/snip"
ln -s "/Applications/snipr.app/Contents/MacOS/snipr" "$USER_HOME/.local/bin/snip"

0 comments on commit 7d13e3d

Please sign in to comment.