summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-03-22 11:15:49 -0400
committerScott Moser <smoser@brickies.net>2017-03-22 11:23:10 -0400
commit2e879da890a4287dd52eab17938d227da7af253a (patch)
tree3013c93d0bba0cdb196ac2ec878d70a22845777a /tools
parentde63d664a664cb06cefcd7c68c5b3428279a9995 (diff)
downloadvyos-cloud-init-2e879da890a4287dd52eab17938d227da7af253a.tar.gz
vyos-cloud-init-2e879da890a4287dd52eab17938d227da7af253a.zip
ds-identify: fix bug where filename expansion was left on.
The script is written to have the protection of disabling filename expansion (set -f) and explicitly enabling expansion when needed. However, the check_config function failed to disable it after enabling.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ds-identify2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index e138d780..6f1e983d 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -473,7 +473,7 @@ check_config() {
files="$*"
fi
shift
- set +f; set -- $files; set +f;
+ set +f; set -- $files; set -f;
if [ "$1" = "$files" -a ! -f "$1" ]; then
return 1
fi