#!/bin/sh
WATCH_DIR="$(dirname "$(realpath "$0")")"
echo "fix files permissions in $WATCH_DIR..."

find "$WATCH_DIR" -type d ! -perm 777 -exec chmod 777 {} \;
find "$WATCH_DIR" -type f ! -perm 644 -exec chmod 644 {} \;

echo "finish"
