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

[BASH 3] Relative path gives error message about UNRARALL_OUTPUT_DIR not being a directory #44

Open
johanthoren opened this issue Mar 7, 2018 · 4 comments

Comments

@johanthoren
Copy link

johanthoren commented Mar 7, 2018

Short description:

If using a relative path with the -o flag, unrarall complains that it's not a directory. When specifying the absolute path there is no error message.

How to reproduce:

Call on unrarall with the -o flag and give it a relative path as argument.

Example:

unrarall -o Movies Downloads

Sidenote:

[[ -d Movies ]] tests as True in the Shell.

Environment details:

OS: MacOS 10.13.3
Bash version: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)

@arfoll
Copy link
Owner

arfoll commented Mar 7, 2018 via email

@johanthoren
Copy link
Author

I just tested with bash 4 installed and then there is no more error message. It's definitely a bash 3 problem. Explains why I didn't notice it before I made a reinstall of MacOS, since I didn't yet install the bash 4 in my new environment.

@johanthoren johanthoren changed the title Relative path gives error message about UNRARALL_OUTPUT_DIR not being a directory [BASH 3] Relative path gives error message about UNRARALL_OUTPUT_DIR not being a directory Mar 8, 2018
@Afforess
Copy link
Contributor

Maybe unrarall should test for the bash version and exit early if it's < 4?

if [ "${BASH_VERSINFO}" -lt 4 ]; then
  echo "$0 only supports bash 4 and higher releases. Please upgrade your version of bash"
  exit 1
fi

@arfoll
Copy link
Owner

arfoll commented Mar 11, 2018 via email

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

3 participants