grm

git repo manager for self-hosted git servers
git clone git://sink.krj.st/grm
Log | Files | Refs | README | LICENSE

commit db706af3efb9c60324ba38c866a8bc7353509dca
parent cb1d56f9bd790bd7618488ee4063528f8880add7
Author: krasjet <nil@krj.st>
Date:   Thu, 16 Jul 2020 14:33:07 -0700

new: handle escaping characters

Diffstat:
Mgrm | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/grm b/grm @@ -102,16 +102,16 @@ ${BLUE}enter index [default: ${GREEN}1${BLUE}]${RESET}" exported=1 ;; esac - printf "%b\n> " "${BLUE}description [${GREEN}${default_desc}${BLUE}]${RESET}" + printf "%b%s%b\n> " "${BLUE}description [${GREEN}" "$default_desc" "${BLUE}]${RESET}" read -r repo_desc repo_desc=${repo_desc:-$default_desc} - printf "%b\n> " "${BLUE}owner [${GREEN}${default_owner}${BLUE}]${RESET}" + printf "%b%s%b\n> " "${BLUE}owner [${GREEN}" "$default_owner" "${BLUE}]${RESET}" read -r owner owner=${owner:-$default_owner} - printf "%b\n> " \ - "${BLUE}clone url [${GREEN}$url_prefix/$repo_name${BLUE}]${RESET}" + printf "%b%s%b\n> " \ + "${BLUE}clone url [${GREEN}" "$url_prefix/$repo_name" "${BLUE}]${RESET}" read -r clone_url clone_url=${clone_url:-$url_prefix/$repo_name}