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
2db7eb61
Commit
2db7eb61
authored
May 23, 2011
by
Corey Quinn
Committed by
Richard Hartmann
May 23, 2011
Browse files
Options
Downloads
Patches
Plain Diff
Test conditions for ~/.config
parent
875822ee
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
+12
-0
12 additions, 0 deletions
vcsh
with
12 additions
and
0 deletions
vcsh
+
12
−
0
View file @
2db7eb61
...
@@ -4,6 +4,18 @@
...
@@ -4,6 +4,18 @@
SELF
=
$(
basename
$0
)
SELF
=
$(
basename
$0
)
[
-z
$XDG_CONFIG_HOME
]
&&
XDG_CONFIG_HOME
=
"
$HOME
/.config"
[
-z
$XDG_CONFIG_HOME
]
&&
XDG_CONFIG_HOME
=
"
$HOME
/.config"
for
dir
in
$XDG_CONFIG_HOME
$XDG_CONFIG_HOME
/vcsh
$XDG_CONFIG_HOME
/vcsh/repo.d
do
if
[
!
-d
$dir
]
;
then
if
[
-e
$dir
]
;
then
echo
"
$SELF
: error:
$dir
exists but is not a directory"
>
&2
return
2
else
mkdir
$dir
||
(
echo
"
$SELF
: error: could not create
$dir
"
>
&2
;
return
2
)
fi
fi
done
VCSH_BASE
=
"
$XDG_CONFIG_HOME
/vcsh/repo.d"
VCSH_BASE
=
"
$XDG_CONFIG_HOME
/vcsh/repo.d"
help
()
{
help
()
{
...
...
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