summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-12-26 03:11:37 +0100
committerDave Reisner <dreisner@archlinux.org>2011-12-26 03:18:20 +0100
commit5b7eb9389e6c13132ba2ab8cd845e82f746979f1 (patch)
treec34f06bdbf61cd348c035a8ac874243f8bfeaef9 /functions
parent53e88f96c6db71bf70942842c77e5202283b9d81 (diff)
downloadmkinitcpio-5b7eb9389e6c13132ba2ab8cd845e82f746979f1.tar.gz
mkinitcpio-5b7eb9389e6c13132ba2ab8cd845e82f746979f1.tar.xz
functions: display proper name on file not found
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 0af586d..306c077 100644
--- a/functions
+++ b/functions
@@ -301,7 +301,7 @@ add_binary() {
binary=$BASEDIR$1
fi
- [[ -f "$binary" ]] || { error "file not found: \`%s'" "$binary"; return 1; }
+ [[ -f "$binary" ]] || { error "file not found: \`%s'" "$1"; return 1; }
dest=${2:-$binary}
mode=$(stat -c %a "$binary")