瀏覽代碼

Use 'type' instead of 'which' to prevent unnecessary dependency

QubesOS/qubes-issues#1299
Marek Marczykowski-Górecki 8 年之前
父節點
當前提交
7e321ba63c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      network/show-hide-nm-applet.sh

+ 1 - 1
network/show-hide-nm-applet.sh

@@ -1,6 +1,6 @@
 #!/bin/sh
 
-which nm-applet > /dev/null 2>&1 || exit 0
+type nm-applet > /dev/null 2>&1 || exit 0
 
 # Hide nm-applet when network-manager is disabled
 nm_enabled=false