test.sh: run from any dir

This commit is contained in:
Kolan Sh 2022-06-05 16:32:36 +03:00
parent 56eb2e7bfd
commit 1c069d5b38
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
for url in `cat sites.url`; do tracepath -m1 -n $url; done | grep 192.168
EXE_PATH="`readlink -f $0`"
PRJ_PATH="${EXE_PATH%/*}"
for url in `cat $PRJ_PATH/sites.url`; do tracepath -m1 -n $url; done | grep 192.168