From 2dcd6204f2dea253ee0373f616c77ad75026df15 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 1 Jul 2015 15:48:40 +0000 Subject: [PATCH] more debug info svn path=/trunk/; revision=6 --- action.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 + -- 2.39.2