only override url if vhost file exists
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
set -e; case "$1" in
|
||||
|
||||
url)
|
||||
echo "http://$(< "/home/git/$2/VHOST")"
|
||||
if [[ -f "/home/git/$2/VHOST" ]]; then
|
||||
echo "http://$(< "/home/git/$2/VHOST")"
|
||||
else
|
||||
cat
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
Reference in New Issue
Block a user