mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-04 10:13:55 +08:00
avoid using IFS
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user