Fix portability prob in git-for-steve.sh
authorSteve Youngs <steve@sxemacs.org>
Sat, 27 Jun 2015 03:13:08 +0000 (13:13 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sat, 27 Jun 2015 03:13:08 +0000 (13:13 +1000)
* contrib/git-for-steve.sh: Make it a bash script.
(set_myremote): Properly quote $REMOTES

Signed-off-by: Steve Youngs <steve@sxemacs.org>
contrib/git-for-steve.sh

index 6f062e4..56fb314 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 #
 # A script to setup your git area to contribute back to SXEmacs
 #
@@ -250,7 +250,7 @@ one already.
                             Hit [RETURN] to continue, or C-c to abort.
 EOF
     read junk
-    REMOTES=($(git remote | grep -v origin))
+    REMOTES=("$(git remote | grep -v origin)")
     echo
     echo "**********************************************************************"
     echo "          Currently configured remotes (possibly empty list)"