diff --git a/chntunnel/chntunnel.sh b/chntunnel/chntunnel.sh index 7d942c1..d1e8028 100644 --- a/chntunnel/chntunnel.sh +++ b/chntunnel/chntunnel.sh @@ -137,7 +137,7 @@ collecting() { source /etc/os-release || source /usr/lib/os-release [[ $ID = 'centos' ]] || error=1 [[ $error -eq 1 ]] && msg_err "Sorry! current system is not supported." && exit 1 -cp $C_DIR/$FILENAME $RUNPATH && chmod 755 $RUNPATH +[[ ! -f $RUNPATH || `find $RUNPATH -mtime +0` ]] && mv $C_DIR/$FILENAME $RUNPATH && chmod 755 $RUNPATH if [ $# != 0 ]; then for param in {$1,$2,$3} do