* removed bashisms
This commit is contained in:
parent
86a42c6857
commit
b9a89f4480
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue