Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
0953e569
Commit
0953e569
authored
Aug 25, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct argument handling
parent
e3d70a16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
util/install/install_stack.sh
+13
-3
No files found.
util/install/install_stack.sh
View file @
0953e569
...
...
@@ -102,15 +102,25 @@ done
shift
"
$((
OPTIND-1
))
"
# Shift off the options we've already parsed
# STACK is a required positional argument.
if
[[
!
$1
]]
;
then
echo
"STACK is required"
usage
exit
1
fi
stack
=
$1
shift
# RELEASE is an optional position argument, defaulting to OPENEDX_RELEASE.
release
=
${
1
-
$OPENEDX_RELEASE
}
shift
# RELEASE is an optional positional argument, defaulting to OPENEDX_RELEASE.
if
[[
$1
]]
;
then
release
=
$1
shift
else
release
=
$OPENEDX_RELEASE
fi
# If there are positional arguments left, something is wrong.
if
[[
$1
]]
;
then
echo
"Don't understand extra arguments:
$*
"
usage
exit
1
fi
...
...
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