OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af04a9d
)
[fix] : Fixed unbound variable
author
hayao
<hayao@fascode.net>
Fri, 2 Apr 2021 13:32:00 +0000
(22:32 +0900)
committer
hayao
<hayao@fascode.net>
Fri, 2 Apr 2021 13:32:00 +0000
(22:32 +0900)
build.sh
patch
|
blob
|
history
diff --git
a/build.sh
b/build.sh
index
9b9403d
..
ab9990b
100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-519,6
+519,8
@@
prepare_build() {
msg_warn "Re-run 'sudo ${0} ${DEFAULT_ARGUMENT} ${ARGUMENT} --nolog 2>&1 | tee ${logging}'"
eval "sudo ${0} ${DEFAULT_ARGUMENT} ${ARGUMENT} --nolog 2>&1 | tee ${logging}"
exit "${?}"
+ else
+ unset DEFAULT_ARGUMENT ARGUMENT
fi
# Set argument of pkglist.sh
@@
-1315,9
+1317,6
@@
if [[ ! "$(bash "${tools_dir}/channel.sh" --version "${alteriso_version}" ver "$
fi
fi
-
-unset DEFAULT_ARGUMENT ARGUMENT
-
set -eu
prepare_env