Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Created May 13, 2015 21:01
Show Gist options
  • Save Ram-Z/fdc80f295201938b598f to your computer and use it in GitHub Desktop.
Save Ram-Z/fdc80f295201938b598f to your computer and use it in GitHub Desktop.
diff --git a/chakra/bin/upload.sh b/chakra/bin/upload.sh
index edeca73..fb949b3 100755
--- a/chakra/bin/upload.sh
+++ b/chakra/bin/upload.sh
@@ -59,8 +59,8 @@ set_repos_and_sync_folder
prepare_targets() {
if [[ -n "$repo" ]]; then
- repos["${repo//[-]*/}"]=1
- eval "${repo//[-]*/}=( '${upload_list[@]}' )"
+ repos["${repo}"]=1
+ eval "${repo}=( '${upload_list[@]}' )"
return
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment