Skip to content
Snippets Groups Projects
Commit 9e27c802 authored by Raphael's avatar Raphael
Browse files

Got port check in bash script working

parent 3f9a51fa
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,11 @@ do
fi
done
services=$( netstat -nl | grep '[^:]:'+ $PORT +'[ \t]')
services=$( netstat -nl | grep '[^:]:'$PORT'[ \t]')
test -n "$services" && {
echo "Warning: something is already using port " + $PORT
echo " $services"
exit
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment