uncomment src deletion
This commit is contained in:
parent
90bc34b49d
commit
d64d93caca
1 changed files with 16 additions and 16 deletions
32
repo-mgmt
32
repo-mgmt
|
@ -196,23 +196,23 @@ function build_pkgs() {
|
||||||
|
|
||||||
for pkg in ${PKGARRAY[@]}; do
|
for pkg in ${PKGARRAY[@]}; do
|
||||||
local continue=false
|
local continue=false
|
||||||
# if [[ -d "$BUILD_DIR/$pkg" ]]; then
|
if [[ -d "$BUILD_DIR/$pkg" ]]; then
|
||||||
# message_warning "Directory exists in ${BUILD_DIR}: $pkg"
|
message_warning "Directory exists in ${BUILD_DIR}: $pkg"
|
||||||
# while [[ ! "$removepkgdirAns" =~ [Yy] ]]; do
|
while [[ ! "$removepkgdirAns" =~ [Yy] ]]; do
|
||||||
# read -p "$(message_question 'Do you want to remove it? (Y/N): ')" removepkgdirAns
|
read -p "$(message_question 'Do you want to remove it? (Y/N): ')" removepkgdirAns
|
||||||
# if [[ "$removepkgdirAns" =~ [Yy] ]]; then
|
if [[ "$removepkgdirAns" =~ [Yy] ]]; then
|
||||||
# message_blue_single_arrow "Removing $pkg"
|
message_blue_single_arrow "Removing $pkg"
|
||||||
# rm -rf "${BUILD_DIR}/$pkg"
|
rm -rf "${BUILD_DIR}/$pkg"
|
||||||
# break
|
break
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# if [[ "$removepkgdirAns" =~ [Nn] ]]; then
|
if [[ "$removepkgdirAns" =~ [Nn] ]]; then
|
||||||
# message_warning "Not removing. Skipping $pkg..."
|
message_warning "Not removing. Skipping $pkg..."
|
||||||
# continue=true
|
continue=true
|
||||||
# break
|
break
|
||||||
# fi
|
fi
|
||||||
# done
|
done
|
||||||
# fi
|
fi
|
||||||
if [[ "$continue" == false ]]; then
|
if [[ "$continue" == false ]]; then
|
||||||
if [[ ! -d "$BUILD_DIR/$pkg" ]]; then
|
if [[ ! -d "$BUILD_DIR/$pkg" ]]; then
|
||||||
container_run "git clone $APKBUILD_GIT_REPO_BASE/${pkg}.git /build/$pkg"
|
container_run "git clone $APKBUILD_GIT_REPO_BASE/${pkg}.git /build/$pkg"
|
||||||
|
|
Loading…
Reference in a new issue