Skip to content

Commit 78d506e

Browse files
committed
Made sure there is no / at the end of the function_name
1 parent 32acb42 commit 78d506e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/function-python-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ fi
8282

8383
setup_function() {
8484
function_name=$1
85+
# Remove ending / if any
86+
function_name=${function_name%/}
8587
echo "Setting up function $function_name"
8688
# verify if the function's folder exists
8789
if [ ! -d "$FUNCTIONS_PATH/$function_name" ]; then

0 commit comments

Comments
 (0)