Skip to content

Commit

Permalink
Merge pull request #124 from nsidc/issue-missing-script
Browse files Browse the repository at this point in the history
Missing env.sh script
  • Loading branch information
eigenbeam authored Jan 27, 2025
2 parents 460320d + 245ddd3 commit c0ce7d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Creates and publishes documentation to
[ReadTheDocs](https://granule-metgen.readthedocs.io/en/latest/)
* Internal updates to no longer rely on a deprecated Python function
* Fixes instructions to set the AWS environment

## v1.0.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Options:
* Process science data and stage it for Cumulus:

# Source the AWS profile (once) before running 'process'-- use 'default' or a named profile
$ source scripts/env.sh default
$ source metgenc-env.sh default
$ metgenc process --config example/modscg.ini

* Validate JSON output
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ addopts = [

[tool.poetry.scripts]
metgenc = 'nsidc.metgen.cli:cli'
metgenc-env = { reference = "scripts/metgenc-env.sh", type= "file" }
2 changes: 1 addition & 1 deletion scripts/env.sh → scripts/metgenc-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if (( $# != 1 )); then
echo "Usage: source env.sh aws_profile_name"
echo "Usage: source metgenc-env.sh aws_profile_name"
echo " where aws_profile_name is an AWS CLI named profile"
echo " https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html"
exit 1
Expand Down

0 comments on commit c0ce7d0

Please sign in to comment.