bug 1363334 - use ls to expand *.app in mac update tests. r=rail FIREFOX_54_0b7_BUILD1_RUNTIME
authorAki Sasaki <asasaki@mozilla.com>
Fri, 12 May 2017 10:22:54 -0700
changeset 7517 8e3a24d5b89c
parent 7516 115949059e20
child 7518 c892e4e4db78
push id5592
push userasasaki@mozilla.com
push dateFri, 12 May 2017 17:23:07 +0000
reviewersrail
bugs1363334
bug 1363334 - use ls to expand *.app in mac update tests. r=rail
release/common/check_updates.sh
--- a/release/common/check_updates.sh
+++ b/release/common/check_updates.sh
@@ -44,17 +44,18 @@ check_updates () {
   esac
 
   if [ -f update/update.status ]; then rm update/update.status; fi
   if [ -f update/update.log ]; then rm update/update.log; fi
 
   if [ -d source/$platform_dirname ]; then
     if [ ".$is_windows" = "." ] ; then
       # not windows
-      cwd="$PWD/source/$platform_dirname"
+      # use ls here, because mac uses *.app, and we need to expand it
+      cwd=$(\ls -d $PWD/source/$platform_dirname)
       update_abspath="$PWD/update"
     else
       # windows
       # change /c/path/to/pwd to c:\\path\\to\\pwd
       four_backslash_pwd=$(echo $PWD | sed -e 's,^/\([a-zA-Z]\)/,\1:/,' | sed -e 's,/,\\\\,g')
       two_backslash_pwd=$(echo $PWD | sed -e 's,^/\([a-zA-Z]\)/,\1:/,' | sed -e 's,/,\\,g')
       cwd="$two_backslash_pwd\\source\\$platform_dirname"
       update_abspath="$two_backslash_pwd\\update"