From 12be8663e97d2650ec3f765f45b69b61eb3d404b Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Sat, 17 Mar 2012 05:45:02 +0000 Subject: [PATCH] * add default target value of syncext. --- bin/syncext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/syncext.php b/bin/syncext.php index 70c6451a13..1fe478f421 100644 --- a/bin/syncext.php +++ b/bin/syncext.php @@ -8,9 +8,9 @@ */ /* Get params from argvs. */ -if(!isset($argv[2])) die("php syncext.php from target sleep\n"); +if(!isset($argv[1])) die("php syncext.php from target sleep\n"); $from = $argv[1]; -$target = $argv[2]; +$target = isset($argv[2]) ? $argv[2] : '/home/z/zentaopms'; $sleep = isset($argv[3]) ? $argv[3] : 5; /* sync files. */