#!/usr/bin/env bash # fix http 403 errors if [ "$UID" != 0 ]; then echo "error: you must run this as root. hint: sudo $0" exit 1 fi set -eux cd "$(dirname "$0")" cas_dirs="btih todo" find $cas_dirs -type d -exec chmod 0755 '{}' ';' find $cas_dirs -type f -exec chmod 0644 '{}' ';'