File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,3 +21,7 @@ STY_UNDERLINE='\e[4m'
2121STY_BLINK=' \e[5m'
2222STY_INVERT=' \e[7m'
2323STY_RST=' \e[00m'
24+
25+
26+ # Used by register_temp_file()
27+ declare -a TEMP_FILES_TO_CLEANUP=()
Original file line number Diff line number Diff line change 33
44# shellcheck shell=bash
55
6- # The script that use this file should have two lines on its top as follows:
7- # cd "$(dirname "$0")"
8- # export base="$(pwd)"
9-
106function try { " $@ " || sleep 0; }
117function v(){
128 echo -e " ####################################################"
@@ -253,9 +249,9 @@ function show_progress() {
253249 fi
254250}
255251
256- # Enhanced: Cleanup temporary files on exit
257- declare -a TEMP_FILES_TO_CLEANUP=()
258252
253+ # Enhanced: Cleanup temporary files on exit
254+ # declare -a TEMP_FILES_TO_CLEANUP=()
259255function register_temp_file() {
260256 local temp_file=" $1 "
261257 TEMP_FILES_TO_CLEANUP+=(" $temp_file " )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Options for install:
2626}
2727
2828cleancache (){
29- rm -rf " $base /cache"
29+ rm -rf " ${REPO_ROOT} /cache"
3030}
3131
3232# `man getopt` to see more
Original file line number Diff line number Diff line change 33
44# shellcheck shell=bash
55
6- # The script that use this file should have two lines on its top as follows:
7- # cd "$(dirname "$0")" export base="$(pwd)"
86showhelp_global (){
97echo -e " Syntax: $0 [subcommand] [options]...
108
Original file line number Diff line number Diff line change 66
77# This file is provided for any distros, mainly non-Arch(based) distros.
88
9- # The script that use this file should have two lines on its top as follows:
10- # cd "$(dirname "$0")"
11- # export base="$(pwd)"
12-
139install-agsv1 (){
1410 x mkdir -p $REPO_ROOT /cache/agsv1
1511 x cd $REPO_ROOT /cache/agsv1
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ install-yay(){
88 x makepkg -o
99 x makepkg -se
1010 x makepkg -i --noconfirm
11- x cd $base
11+ x cd ${REPO_ROOT}
1212 rm -rf /tmp/buildyay
1313}
1414
You can’t perform that action at this time.
0 commit comments