From b9a89f4480acdaa87b7f0d5b3d59beac8cc60dd5 Mon Sep 17 00:00:00 2001 From: age Date: Sun, 6 Apr 2008 16:08:34 +0000 Subject: [PATCH] * removed bashisms --- bin/do_pylint.sh | 2 +- bin/do_unittests.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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" }