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

Throw an exit code if image file not found or wrong color hex code #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

QuentinN42
Copy link

If you pass a wrong param ther is no error code.
That leads to this type of error:

# sudo bash -c './change-gdm-background' && echo "DONE" || echo "ERROR"
Image file not found or wrong color hex code.
Please, submit a .jpg or .png image file or a valid hex code.
Usage: sudo ./ubuntu-20.04-change-gdm-background /path/to/image.*g
Usage: sudo ./ubuntu-20.04-change-gdm-background \#yourhexcode
DONE

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.

None yet

1 participant