summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-01-21 08:33:48 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-01-21 08:33:48 +0100
commit966bcbc7320996ee52697d606a11469f97996765 (patch)
treee780fbbe19d2673e77799afd357bdbaa27f95e5f /functions
parent8afa6ad6f0b7fecade1353a89b958e34bda11eee (diff)
downloadmkinitcpio-966bcbc7320996ee52697d606a11469f97996765.tar.gz
mkinitcpio-966bcbc7320996ee52697d606a11469f97996765.tar.xz
Remove 'dest' logic from add_binary
This was never used and has no potential to be used. Just delete it. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'functions')
-rw-r--r--functions7
1 files changed, 1 insertions, 6 deletions
diff --git a/functions b/functions
index 9ae216a..8dbb24c 100644
--- a/functions
+++ b/functions
@@ -171,11 +171,6 @@ add_binary ()
bin="${1}"
fi
- dest=""
- if [ $# -eq 2 ]; then
- dest=${2}
- fi
-
if [ ! -f "${bin}" ]; then
err "'${bin}' is not a file"
return 1
@@ -186,7 +181,7 @@ add_binary ()
case "${type}" in
*script*)
msg " adding '${type}' script, ensure proper interp exists..."
- add_file "${bin}" ${dest}
+ add_file "${bin}"
;;
*executable*|*shared\ object*)
add_file "${bin}" ${dest}