Skip to content

Commit

Permalink
Fixing some typos in mac install script
Browse files Browse the repository at this point in the history
  • Loading branch information
doggydogworld committed Nov 5, 2024
1 parent 83fe9b5 commit 591b4c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.assets/macos/install
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@ cp -rf tctl.app/ "$APPS_DIR"/tctl.app/ || exit 1


# If tsh exists and is not a link, make a backup.
if [ -f "$BINDIR/tsh" ] && [ ! -L "$BIN/tsh" ]; then
if [ -f "$BINDIR/tsh" ] && [ ! -L "$BINDIR/tsh" ]; then
rm -f "$BINDIR/tsh.bak"
mv "$BINDIR/tsh" "$BIN/tsh.bak"
mv "$BINDIR/tsh" "$BINDIR/tsh.bak"
fi

# Link package to $BINDIR.
rm -f "$BINDIR/tsh" # in case link exists
ln -s "$APPS_DIR/tsh.app/Contents/MacOS/tsh" "$BINDIR/tsh"

# If tctl exists and is not a link, make a backup.
if [ -f "$BINDIR/tctl" ] && [ ! -L "$BIN/tctl" ]; then
if [ -f "$BINDIR/tctl" ] && [ ! -L "$BINDIR/tctl" ]; then
rm -f "$BINDIR/tctl.bak"
mv "$BINDIR/tctl" "$BIN/tctl.bak"
mv "$BINDIR/tctl" "$BINDIR/tctl.bak"
fi

# Link package to $BINDIR.
rm -f "$BINDIR/tctl" # in case link exists
ln -s "$APPSDIR/tctl.app/Contents/MacOS/tctl" "$BINDIR/tctl"
ln -s "$APPS_DIR/tctl.app/Contents/MacOS/tctl" "$BINDIR/tctl"


echo "Teleport binaries have been copied to $BINDIR"
Expand Down

0 comments on commit 591b4c1

Please sign in to comment.