mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Fix handling of suffix with = in it
This commit is contained in:
parent
9a35780c09
commit
91170cd5c8
3
git-open
3
git-open
|
|
@ -46,7 +46,8 @@ done
|
|||
|
||||
# parse suffix from suffix=value
|
||||
IFS='=' read -ra suffix_flag <<< "$suffix_flag"
|
||||
suffix=${suffix_flag[1]}
|
||||
function join_by { local IFS="$1"; shift; echo "$*"; }
|
||||
suffix=$(join_by = ${suffix_flag[@]:1})
|
||||
|
||||
# are we in a git repo?
|
||||
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue