Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
a1p2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luxing Huang
a1p2
Commits
397ec0c7
Commit
397ec0c7
authored
12 years ago
by
Steven Huang
Browse files
Options
Downloads
Patches
Plain Diff
update job.sh
parent
b827dc8f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
job.sh
+93
-84
93 additions, 84 deletions
job.sh
with
93 additions
and
84 deletions
job.sh
+
93
−
84
View file @
397ec0c7
...
...
@@ -16,6 +16,13 @@ usage()
echo
'-r: To Run a java project.'
echo
'-e: To Edit a .java file'
echo
'-h or --help: Display this message.'
echo
'-u: To update from git.'
}
update
()
{
echo
'updateing... '
git pull
}
create
()
...
...
@@ -69,7 +76,7 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ] || [ "$1" == "" ]; then
exit
0
elif
[
"
$1
"
!=
"-h"
]
&&
[
"
$1
"
!=
"-c"
]
&&
[
"
$1
"
!=
"-r"
]
&&
[
"
$1
"
\
!=
"--help"
]
&&
[
"
$1
"
!=
"-e"
]
;
then
!=
"--help"
]
&&
[
"
$1
"
!=
"-e"
]
&&
[
"
$1
"
!=
"-u"
]
;
then
usage
exit
1
elif
[
"
$1
"
==
"-r"
]
;
then
...
...
@@ -113,6 +120,8 @@ elif [ "$1" == "-e" ]; then
PROJ_NAME
=
$2
edit
fi
elif
[
"
$1
"
==
"-u"
]
;
then
update
else
usage
exit
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment