Fix the exit code of the script
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
#/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
if grep -lE '[^'`printf '\r'`']$' $(ack -l "`printf '\r'`\$" ${@:-.}); then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
grep -lE '[^'`printf '\r'`']$' $(ack -l "`printf '\r'`\$" ${@:-.})
|
||||
|
||||
Reference in New Issue
Block a user