fix read options error

This commit is contained in:
darteaga
2020-06-30 11:59:15 +00:00
parent 8fafa0d899
commit e754737551
+1 -1
View File
@@ -11,7 +11,7 @@ SNAPSHOT_ID=${3:-}
# TRIM -snapshot from the distro
IFS="-"
read -a DISTARR <<< "$DIST"
read -ra DISTARR <<< "$DIST"
DIST="${DISTARR[0]}"
unset IFS