]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
resume/resume.sh: prevent "resume: not found"
authorHarald Hoyer <harald@redhat.com>
Tue, 18 Sep 2012 11:37:35 +0000 (13:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 18 Sep 2012 11:37:35 +0000 (13:37 +0200)
Problem lies in modules.d/95resume:

[ -x $(command -v resume) ] && command resume $a_splash "$resume"

``command -v resume'' prints nothing and ``test -x'' returns 0.

Thanks to Consus!

modules.d/95resume/resume.sh

index 408ce46fe84cecdd37c73e474b1057f2d944bbde..6d69b61235166dd5b5c139510f9d81a6e1aef0c0 100755 (executable)
@@ -14,7 +14,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
             a_splash="-P splash=n"
         ;;
     esac
-    [ -x $(command -v resume) ] && command resume $a_splash "$resume"
+    [ -x "$(command -v resume)" ] && command resume $a_splash "$resume"
 
     # parsing the output of ls is Bad, but until there is a better way...
     ls -lH "$resume" | (