diff options
| author | Kacper Sagalara <mail@kasesag.me> | 2026-06-19 19:08:11 +0200 |
|---|---|---|
| committer | Kacper Sagalara <mail@kasesag.me> | 2026-06-19 19:08:11 +0200 |
| commit | 7821c02171d77229797e3a57edd0502e942373cc (patch) | |
| tree | 2856fdb7f36144c6e539cfedacd475bf10458ce1 /scripts/permissions/main.sh | |
| parent | 0339c6b9e1cafffc2e37c47df4277157fc678041 (diff) | |
Diffstat (limited to 'scripts/permissions/main.sh')
| -rwxr-xr-x | scripts/permissions/main.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/permissions/main.sh b/scripts/permissions/main.sh new file mode 100755 index 0000000..4584f64 --- /dev/null +++ b/scripts/permissions/main.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "$#" -ne 2 ]; then + echo "[x] Incorrect arguments!" + echo " Using: $0 <BASE_DIR> <TMP_DIR>" + exit 1 +fi + +BASE_DIR=$1 +TMP_DIR=$2 +SCRIPT_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")") + +"${SCRIPT_DIR}"/remove_permissions.sh "$BASE_DIR" +"${SCRIPT_DIR}"/install_permissions.sh "$BASE_DIR" "$TMP_DIR/res"
\ No newline at end of file |
