summaryrefslogtreecommitdiff
path: root/tools/ds-identify
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ds-identify')
-rwxr-xr-xtools/ds-identify4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index 30106347..54bd9999 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -954,7 +954,9 @@ found() {
shift
fi
# always write the None datasource last.
- list="${list:+${list}, }None"
+ if [ "$list" != "None" ]; then
+ list="${list:+${list}, }None"
+ fi
write_result "datasource_list: [ $list ]" "$@"
return
}