Make shellcheck happy

This commit is contained in:
2024-05-02 17:10:45 +02:00
parent d98529f30b
commit 561cb4038f
2 changed files with 5 additions and 4 deletions

View File

@@ -12,10 +12,11 @@ DOTDIR="/var/lib/dotfiles"
os_release_file=/etc/os-release os_release_file=/etc/os-release
if [[ ! -e "${os_release_file}" ]] ; then if [[ ! -e "${os_release_file}" ]] ; then
2>&1 printf "Could not find ${os_release_file}, exiting" 2>&1 printf 'Could not find %, exiting' "${os_release_file}"
exit 1 exit 1
fi fi
# shellcheck source=/etc/os-release
source "${os_release_file}" source "${os_release_file}"
sudowrap() { sudowrap() {
@@ -37,7 +38,7 @@ install() {
fi fi
sudowrap pacman -S --needed --noconfirm "${package}" sudowrap pacman -S --needed --noconfirm "${package}"
else else
2>&1 printf "Unsupported distro $NAME, exiting" 2>&1 printf 'Unsupported distro %s, exiting' "$NAME"
exit 1 exit 1
fi fi
} }

View File

@@ -10,10 +10,10 @@ pacman -Sy --noconfirm git # yes its a partial upgrade, but thats just the live
cd /root cd /root
git clone --recursive https://code.hkoerber.de/hannes/dotfiles.git git clone --recursive https://code.hkoerber.de/hannes/dotfiles.git
./dotfiles/install_scripts/${host}.sh ./dotfiles/install_scripts/"${host}".sh
mv /root/dotfiles /mnt/var/lib/dotfiles mv /root/dotfiles /mnt/var/lib/dotfiles
read -p "> Ready for reboot. Press enter for shutdown, then remove the installation media and boot again " read -rp "> Ready for reboot. Press enter for shutdown, then remove the installation media and boot again "
poweroff poweroff