From 4bc057e8701b8619557640903fd228bef1e8736f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 19 Dec 2009 20:21:36 +0200 Subject: Fix some bashisms. --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index c8870d3a..09f11b8f 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -557,7 +557,7 @@ confirm() { get_numeric_dev() { ( fmt="%d:%d" - if [ "$1" == "hex" ]; then + if [ "$1" = "hex" ]; then fmt="%x:%x" fi ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }' -- cgit v1.2.1