ソースを参照

Adjust for deprecation of which(1)

Christoph Biedl 2 年 前
コミット
fdc67caa35
1 ファイル変更1 行追加1 行削除
  1. 1 1
      debian/aoetools.postinst

+ 1 - 1
debian/aoetools.postinst

@@ -4,7 +4,7 @@ set -e
 
 
 case "$1" in
 case "$1" in
 configure)
 configure)
-    if which udevadm >/dev/null; then
+    if command -v udevadm >/dev/null; then
         udevadm control --reload || true
         udevadm control --reload || true
     fi
     fi
     # load the kernel module (as opposed to letting the init script do it)
     # load the kernel module (as opposed to letting the init script do it)