Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linuxconf
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
linuxconf
Commits
a434205a
There was an error fetching the commit references. Please try again later.
Commit
a434205a
authored
3 months ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.ver
parent
b72ad00b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linuxconf
+11
-1
11 additions, 1 deletion
linuxconf
with
11 additions
and
1 deletion
linuxconf
100644 → 100755
+
11
−
1
View file @
a434205a
...
...
@@ -35,7 +35,7 @@ function lc_include () {
return
0
}
function
lc_fsmap
()
{
function
lc
i
_fsmap
()
{
# If existing symlink is correct, do nothing & return 0 (success).
# Otherwise, delete the existing symlink. If the existing item is file/folder, move to '$filename.linuxsync_backup'.
# Then create a symlink.
...
...
@@ -56,6 +56,13 @@ function lc_fsmap () {
ln
-s
"
$content_path
"
"
$symlink_path
"
}
function
lc_fsmap
()
{
lci_fsmap
"
$@
"
local
result
=
$?
[
$result
=
0
]
||
err
"lc_fsmap returned error
$result
"
return
$result
}
function
lci_state_file_append
()
{
local
fname
=
"
$1
"
local
prefix
=
"
$2
"
...
...
@@ -147,10 +154,13 @@ function lci_startup_if_needed () {
}
function
lci_usage
()
{
echo2
"linuxconf v
$lci_version
"
echo2
"This tool helps you manage all linux customization in one centralized directory, making backup/sync much easier."
echo2
"Usage: Run '
$0
register <path/to/masterconf.sh>', then it will work out-of-box."
exit
1
}
lci_version
=
0.1.0
subcommand
=
"
$1
"
if
[[
"
$subcommand
"
!=
register
]]
&&
[[
"
$subcommand
"
!=
""
]]
;
then
[[
!
-f
/etc/linuxconf.conf
]]
&&
die
"Please run '
$0
register <path/to/masterconf.sh>' at least once"
...
...
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