From: Mateusz Moscicki Date: Tue, 22 Feb 2022 17:28:53 +0000 (+0100) Subject: Fix 'touch' in case there is no file with the given extension X-Git-Tag: accepted/tizen/unified/20240419.110853~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df8ee3bd08eb9e417f95241c9435797fca1fcd5a;p=platform%2Fcore%2Fsystem%2Fupgrade-tools.git Fix 'touch' in case there is no file with the given extension Change-Id: I21ab3c2467ccaf62ab7d54ec704b7fb3825b0cbc --- diff --git a/mk_delta/common/bin/mk_delta.sh b/mk_delta/common/bin/mk_delta.sh index 4f50e77..3785ebb 100755 --- a/mk_delta/common/bin/mk_delta.sh +++ b/mk_delta/common/bin/mk_delta.sh @@ -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