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-version.sh"
|
||||||
source "../lib/dotify-help.sh"
|
source "../lib/dotify-help.sh"
|
||||||
source "../lib/dotify-info.sh"
|
source "../lib/dotify-info.sh"
|
||||||
source "../lib/dotify-run.sh"
|
source "../lib/dotify-install.sh"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Command Parsing
|
# Command Parsing
|
||||||
@@ -60,8 +60,8 @@ case "$command" in
|
|||||||
"info" )
|
"info" )
|
||||||
dotify-info "$@"
|
dotify-info "$@"
|
||||||
;;
|
;;
|
||||||
"" | "link" | "symlink" )
|
"" | "install" )
|
||||||
dotify-symlink "$@"
|
dotify-install
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
dotify-run() {
|
dotify-install() {
|
||||||
local dotfile="$(locate-dotfile "$@")"
|
local dotfile="$(locate-dotfile)"
|
||||||
if [ -z "$dotfile" ]; then return 1; fi
|
if [ -z "$dotfile" ]; then return 1; fi
|
||||||
|
|
||||||
local target="$(locate-target "$@")"
|
local target="$(locate-target)"
|
||||||
if [ -z "$target" ]; then return 1; fi
|
if [ -z "$target" ]; then return 1; fi
|
||||||
|
|
||||||
parse-dotfile "$dotfile" "$target"
|
parse-dotfile "$dotfile" "$target"
|
||||||
Reference in New Issue
Block a user