diff --git a/example.conf b/example.conf index 515507a..55ba053 100644 --- a/example.conf +++ b/example.conf @@ -3,6 +3,7 @@ tasks_dir="${HOME}/Notes/Tasks" archive_dir="${HOME}/Notes/Archive" scripts_dir="${HOME}/Projects/scripts" editor="vim" +skip_flatpak=true # TODO: Add a flag for force using local? # Ollama host URL or IP; for fully local, leave empty or comment out diff --git a/up.sh b/up.sh index a4d3ff0..2cf841e 100755 --- a/up.sh +++ b/up.sh @@ -1,12 +1,11 @@ #! /usr/bin/bash -# Update commands - -# Load config & functions -#. ${HOME}/ayo.conf -#. ${scripts_dir}/functions.sh - -#command=$1 +# Load config file +. ${HOME}/ayo.conf sudo apt update && sudo apt upgrade -y -flatpak update -y + +# if $skip_flatpak is set in config file +if ! [ $skip_flatpak ]; then + flatpak update -y +fi