Various small fixes

This commit is contained in:
Thomas Lovén 2024-12-27 00:47:42 +01:00
parent feb789c989
commit c828dfc2e6
3 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
HASH="%C(yellow)%h%C(reset)"
RELATIVE_TIME="%C(green)%ar%C(reset)"

View File

@ -3,7 +3,7 @@
function install_pkg() {
if hash apt-get 2>/dev/null; then
sudo -n apt-get update
sudo -n DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${$}
sudo -n DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${@}
return
fi
@ -87,8 +87,10 @@ function main() {
install_pkg locales less
#echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
#sudo locale-gen
if [[ ${REMOTE_CONTAINERS} || ${DEVCONTAINER} ]]; then
echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
sudo locale-gen
fi
setup_fish
setup_ssh

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."