Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
30836ee7
Commit
30836ee7
authored
Nov 18, 2019
by
mattip
Browse files
remove 'i' from the options to set
parent
f55d6fd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
common_utils.sh
common_utils.sh
+1
-1
No files found.
common_utils.sh
View file @
30836ee7
...
@@ -102,7 +102,7 @@ alias gh-clone=gh_clone
...
@@ -102,7 +102,7 @@ alias gh-clone=gh_clone
function
set_opts
{
function
set_opts
{
# Set options from input options string (in $- format).
# Set options from input options string (in $- format).
local
opts
=
$1
local
opts
=
$1
local
chars
=
"exh
i
mBH"
local
chars
=
"exhmBH"
for
((
i
=
0
;
i<
${#
chars
}
;
i++
))
; do
for
((
i
=
0
;
i<
${#
chars
}
;
i++
))
; do
char=
${
chars
:
$i
:1
}
char=
${
chars
:
$i
:1
}
[ -n "
${
opts
//[^
${
char
}
]/
}
" ] && set -
$char
|| set +
$char
[ -n "
${
opts
//[^
${
char
}
]/
}
" ] && set -
$char
|| set +
$char
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment