From: Samuel Mendoza-Jonas Date: Mon, 4 Apr 2016 03:23:43 +0000 (+1000) Subject: version.sh: Fix in-tree case and allow external variables X-Git-Tag: v1.0.1~11 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=b30199d97650117108a5b20236b851c12be803ac;hp=b30199d97650117108a5b20236b851c12be803ac;ds=sidebyside version.sh: Fix in-tree case and allow external variables "$(basename $0)" would return the name of the script, when what is needed is the name of the directory; use 'dirname' instead. If PETITBOOT_VERSION is set, as in a buildroot environment, use this variable instead of the default case. Signed-off-by: Samuel Mendoza-Jonas ---