mirror of
https://github.com/radareorg/radare2-testbins.git
synced 2026-11-07 06:36:01 -10:00
13 lines
192 B
Bash
Executable File
13 lines
192 B
Bash
Executable File
#!/bin/bash
|
|
|
|
diff=$(git diff --name-status "$@")
|
|
if [ $? -eq 128 ]; then
|
|
echo "Failed to diff"
|
|
exit 1
|
|
fi
|
|
|
|
if echo "$diff" | grep '^[^A]'; then
|
|
echo "Only additions are allowed!"
|
|
exit 1
|
|
fi
|