[packages/efi-boot-update] update_file function fix
jajcus
jajcus at pld-linux.org
Sun Nov 4 10:41:14 CET 2012
commit 560a435744bceba3580c9b1bec359d3ab0e0c4e1
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sun Nov 4 10:28:12 2012 +0100
update_file function fix
it would ignore the 'destination' argument
efi-boot-update | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/efi-boot-update b/efi-boot-update
index 0684182..ec420f7 100755
--- a/efi-boot-update
+++ b/efi-boot-update
@@ -66,11 +66,18 @@ update_file () {
esac
done
src="$1"; shift
- dst="$2"; shift
+ dst="$1"; shift
if [ -n "$*" ] ; then
msg "update_file: unexpected arguments: $*"
return 1
fi
+ if [ -z "$src" ] ; then
+ msg "update_file: no source file"
+ return 1
+ fi
+ if [ -z "$dst" ] ; then
+ dst=`basename "$src"`
+ fi
if [ "${dst#/}" = "${dst}" ] ; then
# relative path
dst="$DESTDIR/$dst"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/efi-boot-update.git/commitdiff/e962d0272d7ab03fd8a1628ff00397f28818ccc1
More information about the pld-cvs-commit
mailing list