Browse Source

Allow alternate base paths

Zachary Kotlarek 12 years ago
parent
commit
6fa998b9bc
1 changed files with 6 additions and 2 deletions
  1. 6 2
      sync.sh

+ 6 - 2
sync.sh

@@ -7,8 +7,12 @@ if ! ~/bin/video/isMediaMounted; then
 fi
 
 # Config
-BASE_LOCAL="`~/bin/video/mediaPath`"
-BASE_REMOTE="/Volumes/Bitcasa Infinite Drive"
+if [ -z "${BASE_LOCAL}" ]; then
+	BASE_LOCAL="`~/bin/video/mediaPath`"
+fi
+if [ -z "${BASE_REMOTE}" ]; then
+	BASE_REMOTE="/Volumes/Bitcasa Infinite Drive"
+fi
 
 # Command-line arguments
 SUB_DIR="${1}"