Add 'itsok' function

This commit is contained in:
2023-02-24 17:05:48 +00:00
parent 0e3c912609
commit 5cd0a5aa39

View File

@@ -40,3 +40,12 @@ function demoprompt() {
clear
fi
}
# Tag the file as OK to run
function itsok() {
if [[ $(uname) == "Darwin" ]]; then
xattr -r -d com.apple.quarantine $1
else
echo 'This only works on macOS...'
fi
}