diff --git a/bin/do_pylint.sh b/bin/do_pylint.sh index cefa22b..d4991d9 100755 --- a/bin/do_pylint.sh +++ b/bin/do_pylint.sh @@ -9,7 +9,7 @@ PROJ_DIR=$(cd "$PROJ_DIR"; pwd) PYLINTRC=$PROJ_DIR/src/pylintrc PYTHONPATH=$PROJ_DIR/src -function check_for_filename() +check_for_filename() { # maybe the argument is a file instead of a module name if echo "$1" | grep -q "\.py$" && test -e "$1" diff --git a/bin/do_unittests.sh b/bin/do_unittests.sh index a9a3803..6d06c32 100755 --- a/bin/do_unittests.sh +++ b/bin/do_unittests.sh @@ -12,12 +12,12 @@ BASE_DIR=$(cd "$(dirname $0)/.."; pwd) export PYTHONPATH=$BASE_DIR/src -function disable_filecheck() +disable_filecheck() { sed -i "s/^OVERRIDE_FILECHECK = .*$/OVERRIDE_FILECHECK = True/" "$BASE_DIR/bin/CryptoBoxRootActions" } -function enable_filecheck() +enable_filecheck() { sed -i "s/^OVERRIDE_FILECHECK = .*$/OVERRIDE_FILECHECK = False/" "$BASE_DIR/bin/CryptoBoxRootActions" }