Fix param check

This commit is contained in:
cytopia 2016-12-26 22:17:31 +01:00
parent 28041d72bb
commit f1097a3c68
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 1 additions and 9 deletions

View File

@ -1,13 +1,7 @@
#!/bin/sh -eu
if [ "${#}" != "1" ]; then
echo "[.lib.sh] Error: Invalid number of arguments"
exit 1
fi
DEVILBOX_PATH="${1}"
DEVILBOX_PATH="$( echo "${1}"| sed 's/\/*$//' )" # remove last slash(es): /

View File

@ -77,6 +77,4 @@ before_install:
###
script:
#- .tests/test_${SERVER}.sh .
- echo $SERVER
- echo $VERSION
- .tests/test_single.sh . "${SERVER}" "${VERSION}"