Fix 'touch' in case there is no file with the given extension
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 22 Feb 2022 17:28:53 +0000 (18:28 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 23 Feb 2022 12:54:58 +0000 (13:54 +0100)
Change-Id: I21ab3c2467ccaf62ab7d54ec704b7fb3825b0cbc

mk_delta/common/bin/mk_delta.sh

index 4f50e77..3785ebb 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/bash
 
+# Enabling this option is needed to remove patterns from the argument list if
+# there are no matching files. Without this, "touch" would create the file
+# "*.ini" if there was no file that matched.
+shopt -s nullglob
 
 #==================
 # funtions