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
65fd07a1
Unverified
Commit
65fd07a1
authored
Sep 13, 2019
by
Matthew Brett
Committed by
GitHub
Sep 13, 2019
Browse files
Merge pull request #260 from demonchild2112/patch-1
MRG: Rename 'gh-clone' to fix bash error on MacOS
parents
605aa876
1d0dde39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common_utils.sh
common_utils.sh
+5
-1
No files found.
common_utils.sh
View file @
65fd07a1
...
@@ -91,10 +91,14 @@ function is_function {
...
@@ -91,10 +91,14 @@ function is_function {
(
set
+
e
;
$(
declare
-Ff
"
$1
"
>
/dev/null
)
&&
echo true
)
(
set
+
e
;
$(
declare
-Ff
"
$1
"
>
/dev/null
)
&&
echo true
)
}
}
function
gh
-
clone
{
function
gh
_
clone
{
git clone https://github.com/
$1
git clone https://github.com/
$1
}
}
# gh-clone was renamed to gh_clone, so we have this alias for
# backwards compatibility.
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
...
...
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