Skip to content

Commit

Permalink
macOS: fix the app not showing up after quickinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Vilchanskyi committed Jul 22, 2017
1 parent 542a542 commit 8fd8005
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions quickinstall
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,11 @@ sleep 1
echo ""
read -rp "Start ckb now [Y/n]? " dolaunch
[[ $dolaunch =~ no? ]] && exit 0
APP="$PREFIX"/bin/ckb
[[ "$OSTYPE" == "darwin"* ]] && APP="$APP".app/Contents/MacOS/ckb
if [[ "$OSTYPE" == "darwin"* ]]; then
APP="$PREFIX"/ckb.app/Contents/MacOS/ckb
else
APP="$PREFIX"/bin/ckb
fi
# Ask ckb to close if there's an instance already running
"$APP" --close >/dev/null 2>&1
sleep 1
Expand Down

0 comments on commit 8fd8005

Please sign in to comment.