Rename scripts for syntax highlighting

This commit is contained in:
clsty
2025-10-01 21:49:46 +08:00
parent a7097014a3
commit 7aa1230553
11 changed files with 16 additions and 16 deletions
+8 -8
View File
@@ -1,24 +1,24 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
export base="$(pwd)"
source ./scriptdata/environment-variables
source ./scriptdata/functions
source ./scriptdata/installers
source ./scriptdata/options
source ./scriptdata/environment-variables.sh
source ./scriptdata/functions.sh
source ./scriptdata/installers.sh
source ./scriptdata/options.sh
prevent_sudo_or_root
set -e
#####################################################################################
# 0. Before we start
source ./scriptdata/install-greeting
source ./scriptdata/install-greeting.sh
#####################################################################################
printf "${COLOR_CYAN}[$0]: 1. Install dependencies\n${COLOR_RESET}"
# TODO: if `--via-nix` is specified, source `install-deps-nix` instead.
source ./scriptdata/install-deps-arch
source ./scriptdata/install-deps-arch.sh
#####################################################################################
printf "${COLOR_CYAN}[$0]: 2. Setup for user groups/services etc\n${COLOR_RESET}"
source ./scriptdata/install-setups
source ./scriptdata/install-setups.sh
#####################################################################################
printf "${COLOR_CYAN}[$0]: 3. Copying + Configuring\n${COLOR_RESET}"
source ./scriptdata/install-files
source ./scriptdata/install-files.sh
+3 -3
View File
@@ -5,9 +5,9 @@
cd "$(dirname "$0")"
export base="$(pwd)"
source ./scriptdata/environment-variables
source ./scriptdata/functions
source ./scriptdata/installers
source ./scriptdata/environment-variables.sh
source ./scriptdata/functions.sh
source ./scriptdata/installers.sh
prevent_sudo_or_root
if command -v pacman >/dev/null 2>&1;then printf "${COLOR_RED}[$0]: pacman found, it seems that the system is ArchLinux or Arch-based distro. Aborting...${COLOR_RESET}\n";exit 1;fi
@@ -1,9 +1,9 @@
# This file is provided for any distros, mainly non-Arch(based) distros.
# This script depends on `functions' .
# This script depends on `functions.sh' .
# This is NOT a script for execution, but for loading functions, so NOT need execution permission or shebang.
# NOTE that you NOT need to `cd ..' because the `$0' is NOT this file, but the script file which will source this file.
# 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)"
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
source ./scriptdata/environment-variables
source ./scriptdata/functions
source ./scriptdata/environment-variables.sh
source ./scriptdata/functions.sh
prevent_sudo_or_root
function v() {