Added support for version control integration
This commit is contained in:
@@ -25,6 +25,13 @@ ENCRYPTION="FALSE" # Main Encryption Toggle:
|
||||
PUBKEY="" # Public Key
|
||||
# Encryption is done using GPG. You must enter your
|
||||
# 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
|
||||
|
||||
chmod 600 "$CONFIG_FILE"
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
NOTE=""
|
||||
if [ -z "$1" ]; then help; exit 20
|
||||
else
|
||||
INDEX=0
|
||||
for ARG in "$@"; do
|
||||
let INDEX++
|
||||
case "$ARG" in
|
||||
-c|--create)
|
||||
CREATE="TRUE"
|
||||
@@ -39,6 +41,11 @@ else
|
||||
init_store
|
||||
exit 0
|
||||
;;
|
||||
"$VCTL")
|
||||
cd "$ROOT_DIR"
|
||||
"${@:$INDEX}"
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
NOTE="$ARG"
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user