浏览代码

Add missing quote (#33)

plluksie 6 年之前
父节点
当前提交
0d4fcb1be3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform-upgrade

+ 1 - 1
platform-upgrade

@@ -111,7 +111,7 @@ fi
 if [[ ! -n $platform_url ]]; then
     host=https://us-east.manta.joyent.com
     latest_path="${host}$(_curl "$host/Joyent_Dev/public/SmartOS/latest")"
-    version="$(expr "$latest_path" : '.*\([0-9]\{8\}T[0-9]\{6\}Z\).*')
+    version="$(expr "$latest_path" : '.*\([0-9]\{8\}T[0-9]\{6\}Z\).*')"
     latest_spec_path="$(_curl "$host/Joyent_Dev/public/SmartOS/$version")"
     header="$(expr "$latest_spec_path" : '.*platform-release-\([0-9]\{8\}\)-.*')"
     platform_url="$latest_path/platform-release-$header-$version.tgz"