From: paul Date: Wed, 1 Jul 2015 15:48:40 +0000 (+0000) Subject: more debug info X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=2dcd6204f2dea253ee0373f616c77ad75026df15;p=shcgi more debug info svn path=/trunk/; revision=6 --- diff --git a/action.sh b/action.sh index 5432664..1f44ca1 100755 --- a/action.sh +++ b/action.sh @@ -19,6 +19,12 @@ ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')" ACTION="${_EXEC}/actions/${ACTION}.sh" -[ -x "$ACTION" ] || echo -n "Location: ?p=error\n\n" -. $ACTION +if [ -x "$ACTION" ]; then + debug "trying to execute $ACTION" + . $ACTION +else + debug "unable to execute $ACTION" + echo -n "Location: ?p=error\n\n" +fi +