cleanup: remove trailing spaces in prepare.sh

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-05-26 16:59:51 +02:00
parent 1cb2eef010
commit fe738e9d9f

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -e -o pipefail
# In case no value is specified, default values will be used. # In case no value is specified, default values will be used.
gitrepo="https://github.com/ceph/ceph-csi" gitrepo="https://github.com/ceph/ceph-csi"
workdir="tip/" workdir="tip/"
@ -25,7 +27,7 @@ then
exit 1 exit 1
fi fi
eval set -- ${opts} eval set -- "${opts}"
while true; do while true; do
case "${1}" in case "${1}" in
@ -52,7 +54,7 @@ while true; do
--ref) --ref)
shift shift
ref=${1} ref=${1}
echo ${ref} echo "${ref}"
;; ;;
--) --)
shift shift
@ -66,7 +68,7 @@ set -x
yum -y install git podman yum -y install git podman
git clone --depth=1 ${gitrepo} ${workdir} git clone --depth=1 "${gitrepo}" "${workdir}"
cd ${workdir} cd "${workdir}"
git fetch --depth=1 origin "${ref}:tip/${ref}" git fetch --depth=1 origin "${ref}:tip/${ref}"
git checkout "tip/${ref}" git checkout "tip/${ref}"