Fixes for install scripts
Comment on Discussion When sdist/arch/ Changes / comment_on_discussion (push) Waiting to run

This commit is contained in:
clsty
2025-10-19 06:59:33 +08:00
parent acde0218b3
commit 0e6779fafc
6 changed files with 8 additions and 14 deletions
+4
View File
@@ -21,3 +21,7 @@ STY_UNDERLINE='\e[4m'
STY_BLINK='\e[5m'
STY_INVERT='\e[7m'
STY_RST='\e[00m'
# Used by register_temp_file()
declare -a TEMP_FILES_TO_CLEANUP=()
+2 -6
View File
@@ -3,10 +3,6 @@
# shellcheck shell=bash
# The script that use this file should have two lines on its top as follows:
# cd "$(dirname "$0")"
# export base="$(pwd)"
function try { "$@" || sleep 0; }
function v(){
echo -e "####################################################"
@@ -253,9 +249,9 @@ function show_progress() {
fi
}
# Enhanced: Cleanup temporary files on exit
declare -a TEMP_FILES_TO_CLEANUP=()
# Enhanced: Cleanup temporary files on exit
#declare -a TEMP_FILES_TO_CLEANUP=()
function register_temp_file() {
local temp_file="$1"
TEMP_FILES_TO_CLEANUP+=("$temp_file")
+1 -1
View File
@@ -26,7 +26,7 @@ Options for install:
}
cleancache(){
rm -rf "$base/cache"
rm -rf "${REPO_ROOT}/cache"
}
# `man getopt` to see more
-2
View File
@@ -3,8 +3,6 @@
# shellcheck shell=bash
# The script that use this file should have two lines on its top as follows:
# cd "$(dirname "$0")" export base="$(pwd)"
showhelp_global(){
echo -e "Syntax: $0 [subcommand] [options]...
-4
View File
@@ -6,10 +6,6 @@
# This file is provided for any distros, mainly non-Arch(based) distros.
# The script that use this file should have two lines on its top as follows:
# cd "$(dirname "$0")"
# export base="$(pwd)"
install-agsv1(){
x mkdir -p $REPO_ROOT/cache/agsv1
x cd $REPO_ROOT/cache/agsv1