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

Better error checking (unexpected results running with no/unknown parameters) #2

Open
gingerbeardman opened this issue Oct 17, 2018 · 1 comment

Comments

@gingerbeardman
Copy link

gingerbeardman commented Oct 17, 2018

  • $ checksums.sh -help
/usr/bin/basename: illegal option -- h
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
mdls: unrecognized option `-help'
/usr/bin/stat: illegal option -- h
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
(standard_in) 1: parse error
(standard_in) 1: parse error
  • checksums.sh --help
/usr/bin/basename: illegal option -- -
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
mdls: unrecognized option `--help'
/usr/bin/stat: illegal option -- -
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
(standard_in) 1: parse error
(standard_in) 1: parse error
  • checksums.sh (no parameter)
stat: : stat: No such file or directory
(standard_in) 1: parse error
(standard_in) 1: parse error
@JayBrown
Copy link
Owner

JayBrown commented Nov 1, 2018

Thanks for the input. Checksums will (hopefully sooner than later) be completely reworked into a Platypus application (with CLI-support via symlink into /usr/local/bin) including user preferences via Pashua, sfv support, checksum file support etc. That version will definitely be better at checking for errors.

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

No branches or pull requests

2 participants