Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72fa833

Browse files
authored
Merge pull request #530 from utPLSQL/feature/fix_dev_source_refresh
Fixed dev script to refresh of sources after `utPLSQL-cli` was released.
2 parents 32748ba + 68936b8 commit 72fa833

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

development/refresh_sources.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ rm -rf ${UTPLSQL_DIR:-utPLSQL_latest_release}
1010
# clone utPLSQL master branch from upstream into utPLSQL sub-directory of your project
1111
git clone --depth=1 --branch=${SELFTESTING_BRANCH:-master} https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR:-utPLSQL_latest_release}
1212

13-
rm -rf utPLSQL-cli/*
14-
# download beta version of utPLSQL-cli
15-
curl -Lk -o utPLSQL-cli.zip https://bintray.com/viniciusam/utPLSQL-cli/download_file?file_path=${UTPLSQL_CLI_FILE}
13+
# download latest release version of utPLSQL-cli
14+
curl -LOk $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL-cli/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
1615
# unzip utPLSQL-cli and remove the zip file
17-
unzip utPLSQL-cli.zip && chmod u+x utPLSQL-cli/bin/utplsql && rm utPLSQL-cli.zip
16+
unzip -o utPLSQL-cli.zip && chmod u+x utPLSQL-cli/bin/utplsql && rm utPLSQL-cli.zip
1817

0 commit comments

Comments
 (0)