summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-10-29 14:04:30 +0200
committerDave Reisner <dreisner@archlinux.org>2011-10-30 02:29:17 +0200
commit7eb9355b98ffb5e47b0b1cdc524ff4679cd77327 (patch)
tree5970a921197a161f97a01a96ae9e58e1a7591c3f /functions
parentcb67917fbfaf268316f3c56c804dacb0bd272fd7 (diff)
downloadmkinitcpio-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--functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions b/functions
index 39a0a6c..ef4463e 100644
--- a/functions
+++ b/functions
@@ -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() {