2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-21 09:01:46 +00:00

modified depending on comments

This commit is contained in:
xuweibj 2018-11-08 00:40:02 -05:00
parent c15b527523
commit 682270f20d
2 changed files with 6 additions and 4 deletions

View File

@ -2,10 +2,11 @@
pkgname=$1
cur_path=$(dirname "$0")
if [ "$pkgname" = "ipmitool" ]; then
$cur_path/ipmitool/build.sh
if [ "$pkgname" ]; then
$cur_path/$pkgname/build.sh
exit $?
elif [ -z $pkgname ]; then
else
# TODO: if not specify, build all packages for xcat-dep
echo "Please specify package want to build"
exit 1
fi

View File

@ -15,7 +15,8 @@ build_dir=${DEST:-/${pkgname}_build}
XCAT_BUILD_DISTRO="$(check_linux_distro)"
echo "[INFO] Start to build $pkgname on $XCAT_BUILD_DISTRO"
cd "$(dirname "$0")"
cur_path=$(dirname "$0")
cd $cur_path
XCAT_BUILD_DISTRO="$(check_linux_distro)"
case "${XCAT_BUILD_DISTRO}" in