refactor: scripts structure
This commit is contained in:
parent
5afe738805
commit
792e157815
4 changed files with 10 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./utils.sh
|
||||
source ../utils/main.sh
|
||||
|
||||
FONTS_DIR="../configs/host/ui/fonts"
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./utils.sh
|
||||
source ../utils/main.sh
|
||||
|
||||
UPDATE_PKGS=false
|
||||
CLEAR_CACHE=false
|
||||
|
@ -24,15 +24,6 @@ declare SERVICES=(
|
|||
"crond"
|
||||
)
|
||||
|
||||
exec 1> >(tee "../hyprland_setup_log")
|
||||
|
||||
check() {
|
||||
if [ "$1" != 0 ]; then
|
||||
echo "$2 error : $1" | tee -a ../hyprland_setup_log
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
update_system() {
|
||||
log "Update xbps package manager"
|
||||
sudo xbps-install -u xbps
|
|
@ -13,3 +13,10 @@ check_sudo() {
|
|||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
check() {
|
||||
if [ "$1" != 0 ]; then
|
||||
echo "$2 error : $1" | tee -a ../hyprland_setup_log
|
||||
exit 1
|
||||
fi
|
||||
}
|
2
stow.sh
2
stow.sh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./scripts/utils.sh
|
||||
source ./scripts/utils/main.sh
|
||||
|
||||
CONFIGS_DIR="$(pwd)/configs"
|
||||
DOTFILES_DIR="$CONFIGS_DIR/dotfiles"
|
||||
|
|
Loading…
Add table
Reference in a new issue