Permalink
Browse files

Corrected wrong regex... worked anyhow.. I don't know why

  • Loading branch information...
1 parent c6db1ac commit 31e0410827f6a41cb1d7197738d3ccbd1d5a0c73 @Eichhoernchen Eichhoernchen committed Feb 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 updateServer.sh
View
@@ -9,7 +9,7 @@ noUpdate=`echo "plugins.conf apiKeys.conf"`
curl -L https://github.com/Eichhoernchen/SiriServer/zipball/master > newVersion.zip
-newVersionFolder=`unzip -l newVersion.zip | sed -e 's_.*\(Eichhoernchen-SiriServer-1a77c18\/\).*_\1_p' | awk '{i=i+1; if (i == 5) print $4}'`
+newVersionFolder=`unzip -l newVersion.zip | sed -e 's_.*\(Eichhoernchen-SiriServer-[a-z0-9]+\/\).*_\1_p' | awk '{i=i+1; if (i == 5) print $4}'`
[ -d $newVersionFolder ] && rm -rf $newVersionFolder

0 comments on commit 31e0410

Please sign in to comment.