mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
scripts: mkits-qsdk-ipq-image: strip path from description
The FIT description of the boot script image is derived from the file name given on the command line. Take only the basename so that the script can be passed by path while the description stays the same. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
1 parent
7d0bf92bee
commit
9ec7903e37
1 file changed
+2
-1
@@ -45,7 +45,8 @@ while [ -n "$1" -a -n "$2" ] || [ $has_script ]; do
|
||||
script)
|
||||
name="$node_type"
|
||||
file="$1"; shift
|
||||
desc="${file%.*} uboot ${file##*.}"
|
||||
desc="${file##*/}"
|
||||
desc="${desc%.*} uboot ${desc##*.}"
|
||||
type="$node_type"
|
||||
node_type="firmware"
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user