summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-28 11:17:46 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-29 09:53:45 +0200
commit0ab16cb82390ac751ff3532f11c4e1990dfd47c9 (patch)
tree61d6a9d65ef9a57797c8aa4b2c833f670df4aa25 /apps/files_external
parentde8c15e1a46e33a20af1bad97a8cf27fced84539 (diff)
downloadnextcloud-server-0ab16cb82390ac751ff3532f11c4e1990dfd47c9.tar.gz
nextcloud-server-0ab16cb82390ac751ff3532f11c4e1990dfd47c9.zip
Replace `replace` with `sed` statement
Diffstat (limited to 'apps/files_external')
-rwxr-xr-xapps/files_external/tests/env/start-ftp-morrisjobke.sh2
-rwxr-xr-xapps/files_external/tests/env/start-sftp-atmoz.sh2
-rwxr-xr-xapps/files_external/tests/env/start-smb-silvershell.sh2
-rwxr-xr-xapps/files_external/tests/env/start-smb-windows.sh2
-rwxr-xr-xapps/files_external/tests/env/start-webdav-ownCloud.sh2
-rwxr-xr-xapps/files_external/tests/env/stop-ftp-morrisjobke.sh2
-rwxr-xr-xapps/files_external/tests/env/stop-sftp-atmoz.sh2
-rwxr-xr-xapps/files_external/tests/env/stop-smb-silvershell.sh2
-rwxr-xr-xapps/files_external/tests/env/stop-smb-windows.sh2
-rwxr-xr-xapps/files_external/tests/env/stop-webdav-ownCloud.sh2
10 files changed, 10 insertions, 10 deletions
diff --git a/apps/files_external/tests/env/start-ftp-morrisjobke.sh b/apps/files_external/tests/env/start-ftp-morrisjobke.sh
index 3831e788e5e..a082e6195fb 100755
--- a/apps/files_external/tests/env/start-ftp-morrisjobke.sh
+++ b/apps/files_external/tests/env/start-ftp-morrisjobke.sh
@@ -23,7 +23,7 @@ echo "Fetch recent morrisjobke/docker-proftpd docker image"
docker pull morrisjobke/docker-proftpd
# retrieve current folder to place the config in the parent folder
-thisFolder=`echo $0 | replace "env/start-ftp-morrisjobke.sh" ""`
+thisFolder=`echo $0 | sed 's#env/start-ftp-morrisjobke\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/start-sftp-atmoz.sh b/apps/files_external/tests/env/start-sftp-atmoz.sh
index f77c7a3fddd..04b829add59 100755
--- a/apps/files_external/tests/env/start-sftp-atmoz.sh
+++ b/apps/files_external/tests/env/start-sftp-atmoz.sh
@@ -23,7 +23,7 @@ echo "Fetch recent atmoz/sftp docker image"
docker pull atmoz/sftp
# retrieve current folder to place the config in the parent folder
-thisFolder=`echo $0 | replace "env/start-sftp-atmoz.sh" ""`
+thisFolder=`echo $0 | sed 's#env/start-sftp-atmoz\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/start-smb-silvershell.sh b/apps/files_external/tests/env/start-smb-silvershell.sh
index f72ad3f9e23..afada44d4f7 100755
--- a/apps/files_external/tests/env/start-smb-silvershell.sh
+++ b/apps/files_external/tests/env/start-smb-silvershell.sh
@@ -23,7 +23,7 @@ echo "Fetch recent silvershell/samba docker image"
docker pull silvershell/samba
# retrieve current folder to place the config in the parent folder
-thisFolder=`echo $0 | replace "env/start-smb-silvershell.sh" ""`
+thisFolder=`echo $0 | sed 's#env/start-smb-silvershell\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/start-smb-windows.sh b/apps/files_external/tests/env/start-smb-windows.sh
index d56b0d4f0b5..a5a19ff1bcf 100755
--- a/apps/files_external/tests/env/start-smb-windows.sh
+++ b/apps/files_external/tests/env/start-smb-windows.sh
@@ -9,7 +9,7 @@
#
# retrieve current folder to place the config in the parent folder
-thisFolder=`echo $0 | replace "env/start-smb-windows.sh" ""`
+thisFolder=`echo $0 | sed 's#env/start-smb-windows\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/start-webdav-ownCloud.sh b/apps/files_external/tests/env/start-webdav-ownCloud.sh
index 58b87e8f05d..d6b36c8d90c 100755
--- a/apps/files_external/tests/env/start-webdav-ownCloud.sh
+++ b/apps/files_external/tests/env/start-webdav-ownCloud.sh
@@ -26,7 +26,7 @@ echo "Fetch recent morrisjobke/owncloud docker image"
docker pull morrisjobke/owncloud
# retrieve current folder to place the config in the parent folder
-thisFolder=`echo $0 | replace "env/start-webdav-ownCloud.sh" ""`
+thisFolder=`echo $0 | sed 's#env/start-webdav-ownCloud\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/stop-ftp-morrisjobke.sh b/apps/files_external/tests/env/stop-ftp-morrisjobke.sh
index d8c6cc4f307..899b9a53971 100755
--- a/apps/files_external/tests/env/stop-ftp-morrisjobke.sh
+++ b/apps/files_external/tests/env/stop-ftp-morrisjobke.sh
@@ -17,7 +17,7 @@ fi
echo "Docker executable found - stop and remove docker containers"
# retrieve current folder to remove the config from the parent folder
-thisFolder=`echo $0 | replace "env/stop-ftp-morrisjobke.sh" ""`
+thisFolder=`echo $0 | sed 's#env/stop-ftp-morrisjobke\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/stop-sftp-atmoz.sh b/apps/files_external/tests/env/stop-sftp-atmoz.sh
index 829855c807c..64570cfd68d 100755
--- a/apps/files_external/tests/env/stop-sftp-atmoz.sh
+++ b/apps/files_external/tests/env/stop-sftp-atmoz.sh
@@ -17,7 +17,7 @@ fi
echo "Docker executable found - stop and remove docker containers"
# retrieve current folder to remove the config from the parent folder
-thisFolder=`echo $0 | replace "env/stop-sftp-atmoz.sh" ""`
+thisFolder=`echo $0 | sed 's#env/stop-sftp-atmoz\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/stop-smb-silvershell.sh b/apps/files_external/tests/env/stop-smb-silvershell.sh
index 6ae28d15506..aae954284e9 100755
--- a/apps/files_external/tests/env/stop-smb-silvershell.sh
+++ b/apps/files_external/tests/env/stop-smb-silvershell.sh
@@ -17,7 +17,7 @@ fi
echo "Docker executable found - stop and remove docker containers"
# retrieve current folder to remove the config from the parent folder
-thisFolder=`echo $0 | replace "env/stop-smb-silvershell.sh" ""`
+thisFolder=`echo $0 | sed 's#env/stop-smb-silvershell\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/stop-smb-windows.sh b/apps/files_external/tests/env/stop-smb-windows.sh
index 8e9c82b9569..4f89451ce11 100755
--- a/apps/files_external/tests/env/stop-smb-windows.sh
+++ b/apps/files_external/tests/env/stop-smb-windows.sh
@@ -7,7 +7,7 @@
#
# retrieve current folder to remove the config from the parent folder
-thisFolder=`echo $0 | replace "env/stop-smb-windows.sh" ""`
+thisFolder=`echo $0 | sed 's#env/stop-smb-windows\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."
diff --git a/apps/files_external/tests/env/stop-webdav-ownCloud.sh b/apps/files_external/tests/env/stop-webdav-ownCloud.sh
index 9d75c2bbd03..c87760a1052 100755
--- a/apps/files_external/tests/env/stop-webdav-ownCloud.sh
+++ b/apps/files_external/tests/env/stop-webdav-ownCloud.sh
@@ -17,7 +17,7 @@ fi
echo "Docker executable found - stop and remove docker containers"
# retrieve current folder to remove the config from the parent folder
-thisFolder=`echo $0 | replace "env/stop-webdav-ownCloud.sh" ""`
+thisFolder=`echo $0 | sed 's#env/stop-webdav-ownCloud\.sh##'`
if [ -z "$thisFolder" ]; then
thisFolder="."