treewide: drop use of which
[openwrt/staging/hauke.git] / scripts / ubinize-image.sh
index 01956952409be481b2aa1a3c3faa8ae63a472644..323eae547abc1a9d4d3d5fca8dc52d8abbf06be8 100755 (executable)
@@ -134,7 +134,7 @@ if [ ! -r "$rootfs" -a ! -r "$kernel" -a ! "$outfile" ]; then
        exit 1
 fi
 
-ubinize="$( which ubinize )"
+ubinize="$( command -v ubinize )"
 if [ ! -x "$ubinize" ]; then
        echo "ubinize tool not found or not usable"
        exit 1