-
Notifications
You must be signed in to change notification settings - Fork 44
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
--silent exists with code 1 #210
Comments
If you just want to ignore the error, I suggest appending $ shx --silent cp -r does-not-exist/ path/to/destination/ || shx true In that example, Let me know if this works for you. |
I forgot to mention: the This should definitely be good enough for npm package scripts because npm executes those in either |
nice suggestion but it easer and more readable to achieve it by
|
if the
--silent
option provided, the script hides the error but still exit with code 1, we just need to totally ignore the error.otherwise provide another option
--ignore
to totally ignore errors and exit with code 0The text was updated successfully, but these errors were encountered: