forked from ztombol/bats-file
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d1fb88
commit 321fa70
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,7 +172,7 @@ temp_del() { | |
|
||
# Delete directory. | ||
local result | ||
result="$(rm -rf -- "$path" 2>&1)" | ||
result="$(rm -r -- "$path" 2>&1 </dev/null)" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
martin-schulze-vireso
Author
Member
|
||
if (( $? )); then | ||
echo "$result" \ | ||
| batslib_decorate 'ERROR: temp_del' \ | ||
|
I'm curious @martin-schulze-vireso. In what way is
--force
risky?It should have the exact same effect than the redirect without the need for a redirect, shouldn't it?