From 4617bed203539bc88c3ca11064a32adbbdb9f468 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 19 Oct 2025 17:48:13 +0200 Subject: [PATCH] feat(up): implement skip_flatpak --- example.conf | 1 + up.sh | 15 +++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) 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