diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-28 00:38:58 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-28 00:38:58 +0200 |
commit | d929888cb2c88dceb07cfe320683b981731188a5 (patch) | |
tree | 9b6fa7c4b9f945f6cfbbf95bb69df4ff07b17e13 | |
parent | 95de0bb17b1e2142170c287693be5e2ffc425666 (diff) |
added sorting to gign and posix compliance
-rwxr-xr-x | bin/common/gign | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/common/gign b/bin/common/gign index e82c0b8..ba6be30 100755 --- a/bin/common/gign +++ b/bin/common/gign @@ -1,2 +1,6 @@ #!/usr/bin/env sh -git status --porcelain=v1 | grep "^??" | cut -d' ' -f2- | sed -r 's/^["](.*)["]$/\1/' >> .gitignore +git status --porcelain=v1 | + grep "^??" | + cut -d' ' -f2- | + sed 's/^"\(.*\)"$/\1/' >> .gitignore +cat .gitignore | sort | tee .gitignore > /dev/null |