summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xadd_extbase_property.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/add_extbase_property.sh b/add_extbase_property.sh
index 6defd19..a38eda8 100755
--- a/add_extbase_property.sh
+++ b/add_extbase_property.sh
@@ -5,6 +5,11 @@
# TODO: @required support
# TODO: add relation with optional @lazy support
+if [ ! -e "ext_emconf.php" ]; then
+ echo "Error: This script needs to be run from an extensions root dir"
+ exit 1
+fi
+
model=$1
property=$2
typ=$3