From: Victor Lowther Date: Fri, 6 Mar 2009 19:44:48 +0000 (-0600) Subject: inst never takes 3 arguments anymore. X-Git-Tag: 0.1~336 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34fffd88cef9995dc794f1e4f9c988e5ebfc3bb2;p=thirdparty%2Fdracut.git inst never takes 3 arguments anymore. Remove the misleading help message and the 3 argument processing. --- diff --git a/dracut-functions b/dracut-functions index 504332b8f..ac37bb2ee 100755 --- a/dracut-functions +++ b/dracut-functions @@ -153,17 +153,11 @@ inst_rules() { # general purpose installation function # Same args as above. inst() { - if (($# != 1 && $# != 2 && $# != 3)); then - echo "usage: inst []" - return 1 - fi - local dst - [ $# = 3 ] && dst=$3 - if [ $# = 2 ]; then - [ -d "$2" ] || dst=$2 + if (($# != 1 && $# != 2 )); then + echo "usage: inst []" fi for x in inst_symlink inst_script inst_binary inst_simple; do - $x $1 $dst && return 0 + $x "$@" && return 0 done return 1 }