Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vcsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Kevin Lyda
vcsh
Commits
ea6c502d
Commit
ea6c502d
authored
May 26, 2011
by
Dieter Plaetinck
Committed by
Dieter Plaetinck
May 27, 2011
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: "return" is only valid in functions, replace with "exit"
parent
49c0ab74
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcsh
+6
-6
6 additions, 6 deletions
vcsh
with
6 additions
and
6 deletions
vcsh
+
6
−
6
View file @
ea6c502d
...
...
@@ -74,20 +74,20 @@ leave() {
if
[
"
$1
"
=
'help'
]
||
[
$#
-eq
0
]
;
then
help
[
"
$1
"
=
'help'
]
return
$?
exit
$?
elif
[
"
$1
"
=
'list'
]
;
then
for
i
in
$VCSH_BASE
/
*
.git
;
do
echo
$(
basename
$i
.git
)
done
return
0
exit
0
elif
[
"
$1
"
=
'run'
]
;
then
use
$2
shift
2
"
$@
"
leave
return
0
exit
0
elif
[
"
$1
"
=
'use'
]
;
then
if
[[
-o
NO_IGNORE_EOF
]]
;
then
...
...
@@ -104,7 +104,7 @@ elif [ "$1" = 'use' ]; then
fi
use
$2
buildPS1
return
0
exit
0
elif
[
"
$1
"
=
'clone'
]
;
then
GIT_REMOTE
=
"
$2
"
...
...
@@ -142,11 +142,11 @@ elif [ "$1" = 'exit' ]; then
fi
leave
buildPS1
return
0
exit
0
else
help
return
3
exit
3
fi
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