Rename run command to install

This commit is contained in:
2013-06-27 00:05:19 +02:00
parent 4568fe2d41
commit 9d65d7831e
2 changed files with 6 additions and 6 deletions

6
src/bin/dotify Normal file → Executable file
View 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

View File

@@ -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"