From 9c523e1ff60bf6462baf050f6a9a23dd94c7eebf Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sun, 17 Apr 2022 17:58:33 +0200 Subject: [PATCH] refactor: tweak repo file and settings Signed-off-by: Dominik Willner th33xitus@gmail.com --- klipper_repos.txt | 11 +++++------ scripts/switch_klipper_repo.sh | 4 +--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/klipper_repos.txt b/klipper_repos.txt index be83f45..3a6ac38 100644 --- a/klipper_repos.txt +++ b/klipper_repos.txt @@ -1,12 +1,11 @@ ############################################################## ## DO NOT REMOVE OR EDIT THIS COMMENT BLOCK! ## -## ## -## Always add the URL and branch in this form: ## +## Always add the URL and branch in a pattern like this: ## ## , ## -## Example: ## -## https://github.com/Klipper3d/klipper,master ## +## E.g.: https://github.com/Klipper3d/klipper,master ## ## ## -## A wrong format will cause issues! You have been warned! ## +## A wrong format will cause problems! ## +## Do NOT insert blank lines. Only add one entry per line! ## ############################################################## -##~~~~~ Add the custom repositories below this line ~~~~~~~~## +##~~~~~ Add the custom repositories below THIS line ~~~~~~~~## https://github.com/Klipper3d/klipper,master diff --git a/scripts/switch_klipper_repo.sh b/scripts/switch_klipper_repo.sh index e4a7f2a..27eeb11 100644 --- a/scripts/switch_klipper_repo.sh +++ b/scripts/switch_klipper_repo.sh @@ -87,7 +87,7 @@ function get_klipper_repo_list(){ col1=${yellow}${col1}${white} printf "| ${i}) %s → %-31s|\n" "${col1}" "${col2}" i=$((i+1)) - done < <(grep "" "${repo_file}" | tail -n "+12") + done < <(grep "" "${repo_file}" | tail -n "+11") } function switch_klipper_repo(){ @@ -114,8 +114,6 @@ function show_custom_klipper_repo_help(){ echo -e "| root folder. You can add as many additional repos as | " echo -e "| you wish. Make sure to always add URL ${red}and${white} branch! | " blank_line - echo -e "| Default: ${red}none${white} |" - blank_line back_footer while true; do read -p "${cyan}###### Please select:${white} " choice