Skip to content
Snippets Groups Projects
Commit a434205a authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.ver

parent b72ad00b
No related branches found
No related tags found
No related merge requests found
linuxconf 100644 → 100755
......@@ -35,7 +35,7 @@ function lc_include () {
return 0
}
function lc_fsmap () {
function lci_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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment