Skip to content

Commit 5a0a432

Browse files
committed
Makefile: revise shell script syntax with backticks and double-quotes [networkupstools/nut#3196]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 212baa7 commit 5a0a432

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ html: index.html
1616

1717
index.html: .DUMMY
1818
[ -s $(NUT_WEBSITE_DIR)/Makefile ] && [ -x $(NUT_WEBSITE_DIR)/tools/nut-ddl.py ] # error out if not building along with nut-website
19-
D="`pwd`" && D="`basename "$$D"`" && [ -n "$$D" ] || D="ddl" ; \
19+
D="`pwd`" && D="`basename \"$$D\"`" && [ -n "$$D" ] || D="ddl" ; \
2020
cd .. && $(MAKE) $(MAKE_FLAGS) $(AM_FLAGS) "$$D/index.html"
2121

2222
check-filename-structure:
2323
LANG=C; LC_ALL=C; TZ=UTC; \
2424
export LANG LC_ALL TZ ; \
2525
( find . -name '*.dev*' -o -name '*.nds*' | grep -E -v '\.(dev|nds)\.txt$$' | sort -n | while IFS='' read F ; do \
26-
MASK="`basename "$$F" | sed 's,^\(..*\)__\(..*\)__\(..*\)__\([0-9]..*\)__\([0-9][0-9]*\)\.\(dev\|nds\),MFG__MOD__DRV__NUTVER__REPNUM,'`" \
26+
MASK="`basename \"$$F\" | sed 's,^\(..*\)__\(..*\)__\(..*\)__\([0-9]..*\)__\([0-9][0-9]*\)\.\(dev\|nds\),MFG__MOD__DRV__NUTVER__REPNUM,'`" \
2727
&& [ "$$MASK" = "MFG__MOD__DRV__NUTVER__REPNUM" ] \
2828
&& echo "FILENAME OK: $$F" \
2929
|| { echo "FILENAME STRUCTURE FAILED: $$F ; EXPECTED:" >&2; \

0 commit comments

Comments
 (0)