forked from Shinonome/dots-hyprland
Fixes for install scripts
This commit is contained in:
@@ -21,3 +21,7 @@ STY_UNDERLINE='\e[4m'
|
|||||||
STY_BLINK='\e[5m'
|
STY_BLINK='\e[5m'
|
||||||
STY_INVERT='\e[7m'
|
STY_INVERT='\e[7m'
|
||||||
STY_RST='\e[00m'
|
STY_RST='\e[00m'
|
||||||
|
|
||||||
|
|
||||||
|
# Used by register_temp_file()
|
||||||
|
declare -a TEMP_FILES_TO_CLEANUP=()
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
# shellcheck shell=bash
|
# 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 try { "$@" || sleep 0; }
|
||||||
function v(){
|
function v(){
|
||||||
echo -e "####################################################"
|
echo -e "####################################################"
|
||||||
@@ -253,9 +249,9 @@ function show_progress() {
|
|||||||
fi
|
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() {
|
function register_temp_file() {
|
||||||
local temp_file="$1"
|
local temp_file="$1"
|
||||||
TEMP_FILES_TO_CLEANUP+=("$temp_file")
|
TEMP_FILES_TO_CLEANUP+=("$temp_file")
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Options for install:
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleancache(){
|
cleancache(){
|
||||||
rm -rf "$base/cache"
|
rm -rf "${REPO_ROOT}/cache"
|
||||||
}
|
}
|
||||||
|
|
||||||
# `man getopt` to see more
|
# `man getopt` to see more
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
# shellcheck shell=bash
|
# 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(){
|
showhelp_global(){
|
||||||
echo -e "Syntax: $0 [subcommand] [options]...
|
echo -e "Syntax: $0 [subcommand] [options]...
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,6 @@
|
|||||||
|
|
||||||
# This file is provided for any distros, mainly non-Arch(based) distros.
|
# 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(){
|
install-agsv1(){
|
||||||
x mkdir -p $REPO_ROOT/cache/agsv1
|
x mkdir -p $REPO_ROOT/cache/agsv1
|
||||||
x cd $REPO_ROOT/cache/agsv1
|
x cd $REPO_ROOT/cache/agsv1
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ install-yay(){
|
|||||||
x makepkg -o
|
x makepkg -o
|
||||||
x makepkg -se
|
x makepkg -se
|
||||||
x makepkg -i --noconfirm
|
x makepkg -i --noconfirm
|
||||||
x cd $base
|
x cd ${REPO_ROOT}
|
||||||
rm -rf /tmp/buildyay
|
rm -rf /tmp/buildyay
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user