Added support for version control integration
This commit is contained in:
@@ -25,6 +25,13 @@ ENCRYPTION="FALSE" # Main Encryption Toggle:
|
|||||||
PUBKEY="" # Public Key
|
PUBKEY="" # Public Key
|
||||||
# Encryption is done using GPG. You must enter your
|
# Encryption is done using GPG. You must enter your
|
||||||
# public key's identifier here.
|
# public key's identifier here.
|
||||||
|
|
||||||
|
#VCTL="" # Version Control program
|
||||||
|
# Set this to the name of your preferred version control
|
||||||
|
# program to use it in SNS. For example, if VCTL is Set
|
||||||
|
# to `git`, `sns git ...`` will call `git ...` in SNS's
|
||||||
|
# store. This can be used to revert changes, or to sync
|
||||||
|
# across computers.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod 600 "$CONFIG_FILE"
|
chmod 600 "$CONFIG_FILE"
|
||||||
|
|||||||
@@ -4,7 +4,9 @@
|
|||||||
NOTE=""
|
NOTE=""
|
||||||
if [ -z "$1" ]; then help; exit 20
|
if [ -z "$1" ]; then help; exit 20
|
||||||
else
|
else
|
||||||
|
INDEX=0
|
||||||
for ARG in "$@"; do
|
for ARG in "$@"; do
|
||||||
|
let INDEX++
|
||||||
case "$ARG" in
|
case "$ARG" in
|
||||||
-c|--create)
|
-c|--create)
|
||||||
CREATE="TRUE"
|
CREATE="TRUE"
|
||||||
@@ -39,6 +41,11 @@ else
|
|||||||
init_store
|
init_store
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
"$VCTL")
|
||||||
|
cd "$ROOT_DIR"
|
||||||
|
"${@:$INDEX}"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
NOTE="$ARG"
|
NOTE="$ARG"
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user