Skip to content
Snippets Groups Projects
Commit 397ec0c7 authored by Steven Huang's avatar Steven Huang
Browse files

update job.sh

parent b827dc8f
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment