Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Jan 6, 2025
1 parent 0ec4c8b commit f5d3b9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apptui
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ if command -v am >/dev/null 2>&1; then
am_version=$(am version) && am_installed=1
fi

# shellcheck source=/dev/null
change_config() {
old_value=$(grep '=' < "$config" | grep "$item_name" | cut -d'=' -f2)
gum confirm "Change $item_name from $old_value to $new_value?" && change_config_item; source "$config"
}

# AppMan or AM?
what_to_use() {
while true
Expand Down Expand Up @@ -95,12 +101,6 @@ if [ ! -f "$config" ]; then
create_config
what_to_use
fi
# shellcheck source=/dev/null
change_config() {
old_value=$(grep '=' < "$config" | grep "$item_name" | cut -d'=' -f2)
gum confirm "Change $item_name from $old_value to $new_value?" && change_config_item; source "$config"
}


# shellcheck source=/dev/null
source "$config"
Expand Down

0 comments on commit f5d3b9c

Please sign in to comment.