mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Add dotify-compile command
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
shopt -s extglob
|
||||||
[ -n "$DOTIFY_DEBUG" ] && set -x
|
[ -n "$DOTIFY_DEBUG" ] && set -x
|
||||||
|
|
||||||
# dotify {{VERSION}}
|
# dotify {{VERSION}}
|
||||||
@@ -50,6 +51,7 @@ source "../lib/internals/parse-dotfile-options.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-compile.sh"
|
||||||
source "../lib/dotify-install.sh"
|
source "../lib/dotify-install.sh"
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -114,6 +116,9 @@ case "$command" in
|
|||||||
"info" )
|
"info" )
|
||||||
dotify-info
|
dotify-info
|
||||||
;;
|
;;
|
||||||
|
"compile" )
|
||||||
|
dotify-compile
|
||||||
|
;;
|
||||||
"" | "install" )
|
"" | "install" )
|
||||||
dotify-install
|
dotify-install
|
||||||
;;
|
;;
|
||||||
|
|||||||
7
src/lib/dotify-compile.sh
Normal file
7
src/lib/dotify-compile.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
dotify-compile() {
|
||||||
|
locate-dotfile
|
||||||
|
if [ "$?" != "0" ]; then return 1; fi
|
||||||
|
|
||||||
|
compile-dotfile
|
||||||
|
return $?
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user