diff options
author | Tom Gundersen <teg@jklm.no> | 2011-10-29 14:04:30 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-10-30 02:29:17 +0200 |
commit | 7eb9355b98ffb5e47b0b1cdc524ff4679cd77327 (patch) | |
tree | 5970a921197a161f97a01a96ae9e58e1a7591c3f /functions | |
parent | cb67917fbfaf268316f3c56c804dacb0bd272fd7 (diff) | |
download | mkinitcpio-7eb9355b98ffb5e47b0b1cdc524ff4679cd77327.tar.gz mkinitcpio-7eb9355b98ffb5e47b0b1cdc524ff4679cd77327.tar.xz |
add_symlink: fix argument ordering and add_dir call
Two bugs: operands were swapped in call to _add_symlink, and missing
operand in call to _add_dir.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -249,8 +249,8 @@ add_symlink() { (( $# == 2 )) || return 1 - _add_dir "$(get_dirname "$1")" - _add_symlink "$2" "$1" + add_dir "$(get_dirname "$1")" + _add_symlink "$1" "$2" } add_file() { |