summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-02-25 00:56:29 +0100
committermaximilian attems <maks@debian.org>2010-02-25 00:57:13 +0100
commitdf43f67500c9f3f1d9ad1e310173cf6babd85a61 (patch)
tree3d682566eac44cd3ad935218fdc2274e20d490bf /scripts
parentcd63438f4bfc5c400aeed74ea29010dbc0c0ef4e (diff)
downloadinitramfs-tools-df43f67500c9f3f1d9ad1e310173cf6babd85a61.tar.gz
initramfs-tools-df43f67500c9f3f1d9ad1e310173cf6babd85a61.zip
scripts/local: fix blkid invocation
49337bd looks bogus. It adds the test "[ command ... ]" but I think that should be just "command ..." Reporte-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/local2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/local b/scripts/local
index feead1c..1474073 100644
--- a/scripts/local
+++ b/scripts/local
@@ -11,7 +11,7 @@ get_fstype ()
# vol_id has a more complete list of file systems,
# but fstype is more robust
eval $(fstype "${FS}" 2> /dev/null)
- if [ "$FSTYPE" = "unknown" ] && [ command -v blkid >/dev/null 2>&1 ]; then
+ if [ "$FSTYPE" = "unknown" ] && command -v blkid >/dev/null 2>&1 ; then
FSTYPE=$(blkid -o value -s TYPE "${FS}")
elif [ "$FSTYPE" = "unknown" ] && [ -x /lib/udev/vol_id ]; then
FSTYPE=$(/lib/udev/vol_id -t "${FS}" 2> /dev/null)