feat: hide vars from verbose

This commit is contained in:
ange 2024-05-18 22:02:16 +02:00
parent 281b1be077
commit 007bfb88de
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
8 changed files with 24 additions and 14 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash -e #!/bin/bash
cd -- "$(dirname "$0")" cd -- "$(dirname "$0")"
. ../../src/lib.sh . ../../src/lib.sh
cp -rfT rootfs/ /mnt/ cp -rfTv rootfs/ /mnt/
cat config ../../src/lib.sh src/install.sh | arch-chroot /mnt/ bash -ex cat config ../../src/lib.sh src/install.sh | arch-chroot /mnt/ bash
echo "${BOLD}${GREEN}DONE${NORMAL}" echo "${BOLD}${GREEN}DONE${NORMAL}"

View File

@ -1,4 +1,6 @@
#!/bin/bash -ex #!/bin/bash
set -x
pac "${pkg[@]}" pac "${pkg[@]}"

View File

@ -1,7 +1,7 @@
#!/bin/bash -ex #!/bin/bash
cd -- "$(dirname "$0")" cd -- "$(dirname "$0")"
. ../src/lib.sh . ../src/lib.sh
cat config ../src/lib.sh src/install.sh | arch-chroot /mnt/ bash -ex cat config ../src/lib.sh src/install.sh | arch-chroot /mnt/ bash
echo "${BOLD}${GREEN}DONE${NORMAL}" echo "${BOLD}${GREEN}DONE${NORMAL}"

View File

@ -1,4 +1,6 @@
#!/bin/bash -ex #!/bin/bash
set -x
pac "${pkg[@]}" flatpak xdg-desktop-portal-gtk pac "${pkg[@]}" flatpak xdg-desktop-portal-gtk
flatpak install -y "${flatpakpkg[@]}" flatpak install -y "${flatpakpkg[@]}"

View File

@ -1,8 +1,8 @@
#!/bin/bash -ex #!/bin/bash
cd -- "$(dirname "$0")" cd -- "$(dirname "$0")"
. ./config . ./config
. ./src/lib.sh . ./src/lib.sh
cat src/dotfiles.sh | arch-chroot /mnt/ su - "$username" -c 'bash -ex' cat src/dotfiles.sh | arch-chroot /mnt/ su - "$username" -c 'bash'
echo "${BOLD}${GREEN}DONE.${NORMAL}" echo "${BOLD}${GREEN}DONE.${NORMAL}"

View File

@ -1,8 +1,9 @@
#!/bin/bash -ex #!/bin/bash
cd -- "$(dirname "$0")" cd -- "$(dirname "$0")"
. ./config . ./config
. ./src/lib.sh . ./src/lib.sh
set -x
( (
case "$swapfile" in case "$swapfile" in
[0-9]*) [0-9]*)
@ -24,9 +25,10 @@ cd -- "$(dirname "$0")"
) )
pacstrap -C rootfs/etc/pacman.conf -K /mnt/ --needed "${pkg[@]}" pacstrap -C rootfs/etc/pacman.conf -K /mnt/ --needed "${pkg[@]}"
cp -rfT rootfs/ /mnt/ cp -rfTv rootfs/ /mnt/
genfstab -U /mnt/ >> /mnt/etc/fstab genfstab -U /mnt/ >> /mnt/etc/fstab
swapoff /mnt/swapfile
cat config src/lib.sh src/install.sh | arch-chroot /mnt/ bash -ex cat config src/lib.sh src/install.sh | arch-chroot /mnt/ bash
echo "${BOLD}${GREEN}DONE${NORMAL}" echo "${BOLD}${GREEN}DONE${NORMAL}"

View File

@ -1,9 +1,11 @@
#!/bin/bash -ex #!/bin/bash
cd cd
config=(git --git-dir "$HOME/.dotfiles" --work-tree "$HOME") config=(git --git-dir "$HOME/.dotfiles" --work-tree "$HOME")
repo='https://git.maby.dev/ange/.dotfiles.git' repo='https://git.maby.dev/ange/.dotfiles.git'
set -x
git clone --bare "$repo" "$HOME/.dotfiles" git clone --bare "$repo" "$HOME/.dotfiles"
"${config[@]}" checkout -f "${config[@]}" checkout -f

View File

@ -1,4 +1,6 @@
#!/bin/bash -ex #!/bin/bash
set -x
# System config # System config
ln -sf "/usr/share/zoneinfo/$tz" /etc/localtime ln -sf "/usr/share/zoneinfo/$tz" /etc/localtime