]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: inst(),inst_binary() fixed inst_symlink call
authorHarald Hoyer <harald@redhat.com>
Wed, 27 Jun 2012 08:50:57 +0000 (10:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 10:41:27 +0000 (12:41 +0200)
dracut-functions.sh

index d53ec7b676285b5530d1654520ca4baac2e222d6..2c32e8dfb15c0afdde763cc5370cd8ed9d8d0520 100755 (executable)
@@ -426,7 +426,7 @@ inst_simple() {
 
     local _src=$1 _target="${2:-$1}"
 
-    [[ -L $_src ]] && return inst_symlink $_src $_target
+    [[ -L $_src ]] && { inst_symlink $_src $_target; return $?; }
 
     if ! [[ -d ${initdir}/$_target ]]; then
         [[ -e ${initdir}/$_target ]] && return 0
@@ -515,7 +515,7 @@ inst_binary() {
     _bin=$(find_binary "$1") || return 1
     _target=${2:-$_bin}
     [[ -e $initdir/$_target ]] && return 0
-    [[ -L $_bin ]] && inst_symlink $_bin $_target && return 0
+    [[ -L $_bin ]] && { inst_symlink $_bin $_target; return $?; }
     local _file _line
     local _so_regex='([^ ]*/lib[^/]*/[^ ]*\.so[^ ]*)'
     # I love bash!