From 7c9e07f70cf27e997e87e39727e657c3bb187638 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 10 Jan 2012 22:50:05 +0000 Subject: [PATCH] Fix handling of arguments in ./script/production --- script/production | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/production b/script/production index b8dee41..6a017d0 100755 --- a/script/production +++ b/script/production @@ -8,8 +8,11 @@ fi export RAILS_ENV=production -ACTION=$1 -shift +ACTION="$1" +if [ -z "$ACTION" ]; then + echo "usage: $0 start|stop|restart|run" + exit 1 +fi clear_cache() { if test -w ./public; then -- libgit2 0.21.2