15 lines
192 B
Bash
Executable File
15 lines
192 B
Bash
Executable File
#!/bin/bash
|
|
set -e; case "$1" in
|
|
|
|
url)
|
|
if [[ -f "/home/git/$2/VHOST" ]]; then
|
|
echo "http://$(< "/home/git/$2/VHOST")"
|
|
else
|
|
cat
|
|
fi
|
|
;;
|
|
|
|
help) cat
|
|
;;
|
|
|
|
esac |