From 4990f7b4cc93f1cc6f339cda37adb00ba5c8ed33 Mon Sep 17 00:00:00 2001 From: ange Date: Sun, 6 Apr 2025 13:49:50 +0000 Subject: [PATCH] fix: apt-get -y crashes on prompts --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index b14b570..1598dfe 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,4 @@ #!/bin/bash -e -export DEBIAN_FRONTEND=noninteractive pkg=( 7zip @@ -15,18 +14,19 @@ pkg=( python ) -pkg upgrade -y -pkg install -y "${pkg[@]}" +# TODO https://github.com/termux/termux-tools/blob/master/scripts/termux-change-repo.in +yes | { pkg upgrade; pkg install "${pkg[@]}"; } +pkg autoprune -y # shellcheck disable=SC2174 mkdir -pm 0700 "$HOME/.ssh" curl https://yw5n.com/ssh >> "$HOME/.ssh/authorized_keys" -git clone --depth 1 --bare https://git.maby.dev/ange/.dotfiles.git ~/.dotfiles +git clone --depth 1 --bare https://git.gmoker.com/ange/dotfiles.git ~/.dotfiles git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" checkout -f git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" config status.showUntrackedFiles no -sed '/systemctl/d' "$HOME/.bash_profile" +sed -i '/systemctl/d' "$HOME/.bash_profile" cat <> "$HOME/.bash_profile" gpg-agent