treewide: fix shellcheck issues
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This commit is contained in:
Bruno BELANYI 2023-08-31 10:42:45 +00:00
parent 861136c475
commit 8bcf56fdec
4 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,6 @@ BOLD_GREEN="\e[0;1;32m"
RESET="\e[0m" RESET="\e[0m"
DEST="$HOME/.config/nixpkgs"
BW_SESSION="" BW_SESSION=""
warn() { warn() {

View file

@ -1,6 +1,7 @@
# shellcheck shell=bash # shellcheck shell=bash
# Style the completion a bit # Style the completion a bit
# shellcheck disable=2086,2296
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# Show a prompt on selection # Show a prompt on selection
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s' zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
@ -23,6 +24,7 @@ zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' '*?.old'
# command for process lists, the local web server details and host completion # command for process lists, the local web server details and host completion
# on processes completion complete all user processes # on processes completion complete all user processes
# shellcheck disable=2016
zstyle ':completion:*:processes' command 'ps -au$USER' zstyle ':completion:*:processes' command 'ps -au$USER'
# Completion formatting and messages # Completion formatting and messages

View file

@ -1,5 +1,4 @@
# shellcheck shell=bash # shellcheck shell=bash
# shellcheck disable=2154
# Fix Ctrl+u killing from the cursor instead of the whole line # Fix Ctrl+u killing from the cursor instead of the whole line
bindkey '^u' backward-kill-line bindkey '^u' backward-kill-line

View file

@ -30,6 +30,7 @@ swapon /dev/sda2
apt install sudo apt install sudo
useradd -m -G sudo setupuser useradd -m -G sudo setupuser
# shellcheck disable=2117
su setupuser su setupuser
cat << EOF cat << EOF
@ -37,7 +38,7 @@ cat << EOF
curl -L https://nixos.org/nix/install | sh curl -L https://nixos.org/nix/install | sh
. $HOME/.nix-profile/etc/profile.d/nix.sh . $HOME/.nix-profile/etc/profile.d/nix.sh
nix-channel --add https://nixos.org/channels/nixos-20.09 nixpkgs nix-channel --add https://nixos.org/channels/nixos-20.09 nixpkgs
sudo `which nixos-generate-config` --root /mnt sudo "$(which nixos-generate-config)" --root /mnt
# Change uuids to labels # Change uuids to labels
vim /mnt/etc/nixos/hardware-configuration.nix vim /mnt/etc/nixos/hardware-configuration.nix