From 608a58d011f33642f061ec40b1e35cc33038937d Mon Sep 17 00:00:00 2001 From: livejq Date: Tue, 16 May 2023 16:53:10 +0800 Subject: [PATCH] fix bug x6. --- chntunnel/chntunnel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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