avoid using IFS

This commit is contained in:
darteaga
2020-07-01 10:44:13 +00:00
parent 82fec01b8e
commit 35fb3b08f5
+1 -7
View File
@@ -6,15 +6,9 @@ set -o pipefail
ROOT=$(cd "$(dirname "$0")" && pwd)
TARGET=${1:?Specify the target filename}
DIST=${2:-stable}
DIST=${2%%-*}
SNAPSHOT_ID=${3:-}
# TRIM -snapshot from the distro
IFS="-"
read -ra DISTARR <<< "$DIST"
DIST="${DISTARR[0]}"
unset IFS
LOGFILE=${TARGET}.log
:>"$LOGFILE"