Skip to content
Permalink
Browse files

Create fix.command

  • Loading branch information...
n1ckfg committed Dec 9, 2018
1 parent c9c105b commit 0e12e8ed94e8de40159bb116ce53e1bd7e5ea323
Showing with 15 additions and 0 deletions.
  1. +15 −0 data/tools/fix.command
@@ -0,0 +1,15 @@
#!/bin/bash

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

cd $DIR

cd ../../../../../..

xattr -d com.apple.quarantine ManosOsc.app

0 comments on commit 0e12e8e

Please sign in to comment.
You can’t perform that action at this time.