1 2 3 4 5 6
#!/bin/sh if sed --version | grep -q 'GNU sed'; then # Remove trailing white space sed -i 's/\s\s*$//' pom.c pom.h fi git add -u