Skip to content

Instantly share code, notes, and snippets.

@aseemk
Created October 17, 2012 14:23
Show Gist options
  • Save aseemk/3905781 to your computer and use it in GitHub Desktop.
Save aseemk/3905781 to your computer and use it in GitHub Desktop.
Wrapper script around gmvault that allows setting default options.
#!/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