8000 make manifest download script handle errors correctly with dash by jgressma · Pull Request #2175 · Yelp/mrjob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

make manifest download script handle errors correctly with dash #2175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2020

Conversation

jgressma
Copy link
Contributor

/bin/sh points to dash on Ubuntu 18.04 LTS. The construct

{ VAR=1; } &>/dev/null

doesn't set VAR for dash but it does for bash. Previously the script
would (benignly?) succeed, regardless of python's exit code. Here is a
typical output prior to this patch:

  • set +e
  • python args ...
  • [ -ne 0 ]
    manifest-setup.sh: 67: [: -ne: unexpected operator
  • rm ./input-jrOOHByJvm.blf
  • RETURNCODE=0
  • set +x
  • exit

/bin/sh points to dash on Ubuntu 18.04 LTS. The construct

	{ VAR=1; } &>/dev/null

doesn't set VAR for dash but it does for bash. Previously the script
would (benignly?) succeed, regardless of python's exit code. Here is a
typical output prior to this patch:

+ set +e
+ python args ...
+
+ [ -ne 0 ]
manifest-setup.sh: 67: [: -ne: unexpected operator
+ rm ./input-jrOOHByJvm.blf
+ RETURNCODE=0
+ set +x
+ exit
@coyotemarin coyotemarin added this to the v0.7.3 milestone May 28, 2020
@coyotemarin coyotemarin merged commit a53100c into Yelp:master May 28, 2020
@coyotemarin coyotemarin changed the title MRJobBinRunner: make script compatible with dash make manifest download script compatible with dash Jun 1, 2020
@coyotemarin coyotemarin changed the title make manifest download script compatible with dash make manifest download script handle errors correctly with dash Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0