Files
Alte_Skripte/aktuelle_Scripte/de.ing.allow_workstation.jnlp.sh
2026-02-16 15:05:15 +01:00

11 lines
389 B
Bash

#!/bin/bash
# ein Programm soll, ausnahmsweise, auf einem Client Rechner ausführbar gemacht werden
# und wird hierzu als Ausnahme dem Prozess "Gatekeeper" bekanntgemacht
# Variabeln
user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2)
app=workstation.jnlp
dir=$(find /Users/$user -name $app)
if [ -f $dir ]; then xattr -d com.apple.quarantine $dir; else echo "$app not found."; fi