Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-28 12:17:46 +0300
committerMorris Jobke <hey@morrisjobke.de>2015-04-29 10:53:45 +0300
commit0ab16cb82390ac751ff3532f11c4e1990dfd47c9 (patch)
tree61d6a9d65ef9a57797c8aa4b2c833f670df4aa25 /autotest-external.sh
parentde8c15e1a46e33a20af1bad97a8cf27fced84539 (diff)
Replace `replace` with `sed` statement
Diffstat (limited to 'autotest-external.sh')
-rwxr-xr-xautotest-external.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/autotest-external.sh b/autotest-external.sh
index 6ebe093c8a7..65d53aaa95d 100755
--- a/autotest-external.sh
+++ b/autotest-external.sh
@@ -32,11 +32,6 @@ if ! [ -x "$PHPUNIT" ]; then
exit 3
fi
-if ! which replace > /dev/null 2>&1; then
- echo "The command 'replace' is not available on this system. Please install it first." >&2
- exit 5
-fi
-
PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2)
PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1)
PHPUNIT_MINOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f2)
@@ -181,7 +176,7 @@ EOF
FILES_EXTERNAL_BACKEND_ENV_PATH=../apps/files_external/tests/env
for startFile in `ls -1 $FILES_EXTERNAL_BACKEND_ENV_PATH | grep start`; do
- name=`echo $startFile | replace "start-" "" | replace ".sh" ""`
+ name=`echo $startFile | sed 's/start-//' | sed 's/\.sh//'`
if [ -n "$2" -a "$2" != "$name" ]; then
echo "skip: $startFile"
@@ -211,7 +206,7 @@ EOF
fi
# calculate stop file
- stopFile=`echo "$startFile" | replace start stop`
+ stopFile=`echo "$startFile" | sed 's/start/stop/'`
echo "stop: $stopFile"
if [ -f $FILES_EXTERNAL_BACKEND_ENV_PATH/$stopFile ]; then
# execute stop file if existant