feat(freebsd): Install scripts updated to support FreeBSD

This commit is contained in:
Pratik Tripathy
2025-01-01 22:23:56 +05:30
parent dc94f3b0a8
commit 74a51361a8
3 changed files with 81 additions and 24 deletions

View File

@@ -26,8 +26,10 @@ post_install() {
chsh -s "$(which zsh)" && echo "Default shell changed to zsh"
# Time fix for Windows dual boot
timedatectl set-local-rtc 1 --adjust-system-clock && echo "Set Datetime"
# Time fix for Windows dual boot - skip on FreeBSD
if [ "$(uname -s)" != "FreeBSD" ]; then
timedatectl set-local-rtc 1 --adjust-system-clock && echo "Set Datetime"
fi
rm -rf ~/.cache
}
@@ -50,7 +52,11 @@ main() {
pre_install
./install-os-packages.sh
./install-brew-packages.sh
# Skip brew installation on FreeBSD
if [ "$(uname -s)" != "FreeBSD" ]; then
./install-brew-packages.sh
fi
manual_installs
post_install