From d1cdf52bda60a175839b31fcde05238024646338 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 16 Feb 2023 16:32:53 +0100 Subject: [PATCH] Add git in installed packages and fix a shell condition --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 49f3807..0816c67 100644 --- a/setup.sh +++ b/setup.sh @@ -23,7 +23,7 @@ install_packages() { sed -i -e "s/$deb_apt_default_repo/$deb_apt_repo/g" /etc/apt/sources.list apt update apt upgrade -y - apt install -y vim tree tmux neofetch + apt install -y vim tree tmux neofetch git } add_users() { @@ -60,7 +60,7 @@ set_sshd_conf() { } set_cpufreq() { - if [ $default_hostname = 'orangepizero' ]; then + if [[ $default_hostname = 'orangepizero' ]]; then echo "Setting CPU frequency to performance" sed -i -e "s/GOVERNOR=ondemand/GOVERNOR=performance/g" /etc/default/cpufrequtils fi