acoeur/bin/apache_on_change.sh
2022-10-26 23:12:29 +02:00

15 lines
189 B
Bash
Executable File

#!/usr/bin/sh
cd "$(dirname "$0")/.." || exit
line="$1"
url=$(echo "$line" | cut -d ' ' -f7)
full="$(pwd)/content$url"
dir=${full%/*}
page=${url##*/}
"bin/ac_route.sh" "$dir" "$page"