diff --git a/README.md b/README.md index 4724bc8..cfc4493 100755 --- a/README.md +++ b/README.md @@ -9,16 +9,13 @@ Old customizer scripts for gnome ## nextcloud WIP - Install all missing needed modules for Nextcloud on a server -## solus_utility -Scripts specific to Solus -* Set up a Solus OS development environment (update needed) - ## utility Miscellaneous scripts, e.g. set screen brightness from command line (bug workaround) ## Other * Backup and restore scripts for packages installed on Solus OS -* git_tidy_local_branches.sh - will remove local branches when the remote is gone # new +* Set up a Solus OS development environment (update needed) +* git_tidy_local_branches.sh - will remove local branches when the remote is gone # new saved * Backup and restore scripts for Linux systems * obsidian_hide_inlineTitle.py - Change all Obsidian vaults to hide inline titles * obsidian_get_inlineTitle_values.py - Get the value of inlineTitle in all Obsidian vaults diff --git a/solus_utility/solus_update_package_recipe.sh b/solus_utility/solus_update_package_recipe.sh deleted file mode 100755 index bc4901a..0000000 --- a/solus_utility/solus_update_package_recipe.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash - -# Update syncthing - -echo "Running solus_update_syncthing. Remember to create a new branch" - -source ~/.bashrc.d/solus-monorepo-helpers.sh - -function get_package_ver { - - local ver - ver="$(curl -s $latest_rel_url | jq -r .name)" - # ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. - echo "${ver}" - -} - -function set_recipe_url { - local tag_ver - tag_ver=$(get_package_ver $pkg) - local source_url - source_url="https://github.com/${owner}/${repo}/archive/refs/tags/${tag_ver}.tar.gz" - echo "${source_url}" -} - -function get_ver_num { - local ver_string - ver_string=$(get_package_ver $pkg) - local ver_num - #TODO: if test to only trim if there's a v at the beginning of the string - ver_num="${ver_string:1}" - echo $ver_num -} - -function clean_and_update { - echo "go-task update for $1 ver $2 url $3" - gotosoluspkgs - gotopkg "${1}" - git switch -c "update_${1}_${2}" - go-task clean - go-task update -- "${2}" "${3}" - # go-task # Probably don't want to do this - # TODO: chpwd ? To make shell stay in dir? -} - -# TODO: Pass pkg, name, repo in as a variable to the script -pkg=syncthing -owner=syncthing -repo=syncthing - -latest_rel_url=https://api.github.com/repos/${owner}/${repo}/releases/latest - -pkg_ver=$(get_ver_num) -pkg_url=$(set_recipe_url $pkg) -clean_and_update "$pkg" "$pkg_ver" "$pkg_url" -echo "Complete. Run go-task in the package directory."