Skip to content

Commit 9645b0c

Browse files
committed
kill ...
1 parent cc03cc8 commit 9645b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_uec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ EOF
168168
# (re)start a metadata service
169169
(
170170
pid=`lsof -iTCP@192.168.$GUEST_NETWORK.1:4567 -n | awk '{print $2}' | tail -1`
171-
[ ! -e $pid ] || kill -9 $pid
171+
[ -z "$pid" ] || kill -9 $pid
172172
)
173173
cd $vm_dir/uec
174174
python meta.py 192.168.$GUEST_NETWORK.1:4567 &

0 commit comments

Comments
 (0)