Created
October 17, 2012 14:23
-
-
Save aseemk/3905781 to your computer and use it in GitHub Desktop.
Wrapper script around gmvault that allows setting default options.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Wrapper around gmvault binary that sets default options. | |
GMVAULT_DIR="$HOME/Dropbox/Applications/Utilities/gmvault-v1.7-beta/bin/" | |
DB_DIR="$HOME/Dropbox/.gmvault-db" | |
# Run in a sub-shell since we need to change directories: | |
( | |
cd $GMVAULT_DIR | |
# grab the specific gmvault command (e.g. sync): | |
command=$1 | |
# then shift the rest of the arguments so we can pass them on: | |
shift 1 | |
# finally, call: | |
./gmvault "$command" -d "$DB_DIR" -e "$@" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment