diff options
author | James Turner <jturner@gemini.edu> | 2016-10-19 20:32:46 -0400 |
---|---|---|
committer | James Turner <jturner@gemini.edu> | 2016-10-19 20:32:46 -0400 |
commit | 46e0e458820ad0876c8d045109b20ce2171756c0 (patch) | |
tree | ba02b0e2871b795d5740b0a63b78942d15d6d3d8 /scripts/ac_config_iraf_pkg | |
parent | 65c2b11cf0ea44e5c09db6fba4d5629426896150 (diff) | |
download | astroconda-iraf-helpers-46e0e458820ad0876c8d045109b20ce2171756c0.tar.gz |
Create extern.pkg if it doesn't already exist, for better foolproofing; we already check that ur_extern.pkg exists, so this is unlikely to lead to extern.pkg being written to weird places when invoked improperly (not a big deal anyway).
Diffstat (limited to 'scripts/ac_config_iraf_pkg')
-rwxr-xr-x | scripts/ac_config_iraf_pkg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ac_config_iraf_pkg b/scripts/ac_config_iraf_pkg index c1f3e09..f41f943 100755 --- a/scripts/ac_config_iraf_pkg +++ b/scripts/ac_config_iraf_pkg @@ -61,6 +61,9 @@ if [ ! -d "$PREFIX" -o ! -w "$PREFIX" ]; then exit 1 fi +# Create any new file with the expected permissions: +umask 022 + # The Python script for updating extern.pkg must be invoked as follows because # (if directly executable) conda insists on changing its interpreter path to # one in the env that may not exist, since IRAF packages do not require python |