mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Rename run command to install
This commit is contained in:
6
src/bin/dotify
Normal file → Executable file
6
src/bin/dotify
Normal file → Executable file
@@ -33,7 +33,7 @@ source "../lib/internals.sh"
|
||||
source "../lib/dotify-version.sh"
|
||||
source "../lib/dotify-help.sh"
|
||||
source "../lib/dotify-info.sh"
|
||||
source "../lib/dotify-run.sh"
|
||||
source "../lib/dotify-install.sh"
|
||||
|
||||
#
|
||||
# Command Parsing
|
||||
@@ -60,8 +60,8 @@ case "$command" in
|
||||
"info" )
|
||||
dotify-info "$@"
|
||||
;;
|
||||
"" | "link" | "symlink" )
|
||||
dotify-symlink "$@"
|
||||
"" | "install" )
|
||||
dotify-install
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
dotify-run() {
|
||||
local dotfile="$(locate-dotfile "$@")"
|
||||
dotify-install() {
|
||||
local dotfile="$(locate-dotfile)"
|
||||
if [ -z "$dotfile" ]; then return 1; fi
|
||||
|
||||
local target="$(locate-target "$@")"
|
||||
local target="$(locate-target)"
|
||||
if [ -z "$target" ]; then return 1; fi
|
||||
|
||||
parse-dotfile "$dotfile" "$target"
|
||||
Reference in New Issue
Block a user