소스 검색

vif-route-qubes: Check that the -e flag is set

Demi Marie Obenour 3 년 전
부모
커밋
9840953f5f
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      network/vif-route-qubes

+ 5 - 0
network/vif-route-qubes

@@ -134,6 +134,11 @@ if [ -n "$appvm_ip" ] && [ -n "$appvm_gw_ip" ] && [ "$appvm_ip" != "$netvm_ip" ]
     . "$dir/vif-qubes-nat.sh"
 fi
 
+case $- in
+(*e*) :;;
+(*) echo '-e not set'>&2; exit 1;;
+esac
+
 # add anti-spoofing rules before enabling the interface
 if [ "${ip}" ]; then
     # If we’ve been given a list of IP addresses, then add routes from us to