From dcff694c42b9b628dd000f41d572ba23a5487fd0 Mon Sep 17 00:00:00 2001 From: jgen Date: Tue, 18 Feb 2014 01:11:39 -0500 Subject: [PATCH] Bash arguments start at 1. --- tests/setup_test_env.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/setup_test_env.sh b/tests/setup_test_env.sh index 9e52ed09..1c64bd70 100644 --- a/tests/setup_test_env.sh +++ b/tests/setup_test_env.sh @@ -19,7 +19,7 @@ sudo /etc/init.d/php5-fpm stop # shimmie needs to be able to create directories for images, etc. # (permissions of 777 are bad, but it definitely works) -sudo chmod -R 0777 $0 +sudo chmod -R 0777 $1 NGINX_CONF="/etc/nginx/sites-enabled/default" @@ -28,8 +28,8 @@ echo " server { listen 80; server_name localhost 127.0.0.1 \"\"; - root $0/; - index index.php; + root $1/; + index index.php; location ~ /_?(images|thumbs)/ { default_type image/jpeg;