mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
misc linter updates
This commit is contained in:
parent
f1e17562b8
commit
0439ddf7d5
14 changed files with 158 additions and 131 deletions
8
scripts/exit_0_if_empty.py
Executable file
8
scripts/exit_0_if_empty.py
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
# if you know a bash one liner for this, be my guest
|
||||
import sys
|
||||
|
||||
data = open(sys.argv[1]).read(10)
|
||||
has_data = len(data) > 0
|
||||
|
||||
sys.exit(has_data)
|
||||
Loading…
Add table
Add a link
Reference in a new issue