Skip to content
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

Error if --workdir flag points somewhere that doesn't exist or is not… #1959

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

jordansissel
Copy link
Owner

… a directory.

Fixes #1938

@jordansissel
Copy link
Owner Author

% bundle exec rspec -fd spec/fpm/command_spec.rb -e 'workdir'
Run options: include {:full_description=>/workdir/}

FPM::Command
  --workdir
    with an nonexistent path
      should fail aka return nonzero exit
    with a path that is not a directory
      should fail aka return nonzero exit

Finished in 0.0014 seconds (files took 0.14484 seconds to load)
2 examples, 0 failures

@jordansissel jordansissel merged commit 5b104bc into main Nov 14, 2022
@jordansissel
Copy link
Owner Author

fpm 1.15.0 is released and contains this improvement.

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.

fpm crashes with an exception if a given --workdir path doesn't exist
1 participant