mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Fixes for install scripts
Comment on Discussion When sdist/arch/ Changes / comment_on_discussion (push) Waiting to run
Comment on Discussion When sdist/arch/ Changes / comment_on_discussion (push) Waiting to run
This commit is contained in:
@@ -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=()
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -26,7 +26,7 @@ Options for install:
|
||||
}
|
||||
|
||||
cleancache(){
|
||||
rm -rf "$base/cache"
|
||||
rm -rf "${REPO_ROOT}/cache"
|
||||
}
|
||||
|
||||
# `man getopt` to see more
|
||||
|
||||
@@ -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]...
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user