-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7923dc
commit 9f30f7c
Showing
3 changed files
with
19 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
echo "Finding version numbers for $1" | ||
some_failure=false | ||
|
||
conda_version=$(conda search -c conda-forge $1 | tail -n1 | awk '{print $2}') | ||
echo "conda version=$conda_version" | ||
for i in "hipscat" "hipscat-import" "lsdb" | ||
do | ||
echo "Finding version numbers for $i" | ||
|
||
pypi_version=$(get_pypi_latest_version $1) | ||
echo "pypi version=$pypi_version" | ||
conda_version=$(conda search -c conda-forge $1 | tail -n1 | awk '{print $2}') | ||
echo "conda version=$conda_version" | ||
|
||
if ["$conda_version" != "$pypi_version"] | ||
then | ||
pypi_version=$(get_pypi_latest_version $1) | ||
echo "pypi version=$pypi_version" | ||
|
||
if ["$conda_version" != "$pypi_version"] | ||
then | ||
some_failure=true | ||
fi | ||
done | ||
|
||
if ["$some_failure" == true] | ||
then | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters