Skip to content

Commit 250c428

Browse files
committed
[clean] : Removed some useless code
1 parent cd35d5f commit 250c428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ prepare_build() {
422422
if [[ -d "${script_path}/.git" ]]; then
423423
cd "${script_path}"
424424
msg_debug "The version of alteriso is $(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')."
425-
cd "${OLDPWD}" > /dev/null 2>&1
425+
cd "${OLDPWD}"
426426
fi
427427

428428
# Set dirs
@@ -489,7 +489,7 @@ prepare_build() {
489489
# gitversion
490490
if [[ "${gitversion}" = true ]]; then
491491
cd "${script_path}"
492-
iso_version=${iso_version}-$(git rev-parse --short HEAD)
492+
iso_version="${iso_version}-$(git rev-parse --short HEAD)"
493493
cd "${OLDPWD}"
494494
fi
495495

0 commit comments

Comments
 (0)