diff --git a/wg_stop b/wg_stop index 365af1b..9570c71 100755 --- a/wg_stop +++ b/wg_stop @@ -40,5 +40,5 @@ WG_PIC="/home/$USER/.icons/" --text=$""$VALUE" Connection disconnected" fi done - IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}for-kill_pid.txt) ) + IFS=$'\n' lines=( $(cat ${WG_WDIR}for-kill_pid.txt) ) kill $lines \ No newline at end of file