Skip to content

Commit

Permalink
Fix quoting
Browse files Browse the repository at this point in the history
Use "$@" not "$*" so that spaces in arguments are preserved.
Also add the #! tag at the start.

Signed-off-by: Peter Chubb <[email protected]>
  • Loading branch information
wom-bat authored and Ivan-Velickovic committed Mar 19, 2024
1 parent d05b03d commit f4b6a7b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/dtscat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a baisc script that concatenates the given Device Tree Sources.
#!/bin/sh
# This is a basic script that concatenates the given Device Tree Sources.
# Useful for when you have a single DTS
# Author: tim-arney
#!/bin/bash

usage() {
cmd=$(basename "$0")
Expand All @@ -16,7 +16,7 @@ fi

BASE="$1"
shift
OVERLAYS="$*"
OVERLAYS="$@"

if [ ! -f "$BASE" ]
then
Expand Down Expand Up @@ -46,4 +46,3 @@ do
done

cat "$BASE" $OVERLAYS

0 comments on commit f4b6a7b

Please sign in to comment.