mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 01:42:29 +00:00
fix(script): sort-symbol-file script now overwrites the original by creating a backup file
This commit is contained in:
parent
e1bab2b375
commit
cfb921e9fa
1 changed files with 3 additions and 1 deletions
|
|
@ -8,4 +8,6 @@ if [ $# -eq 0 ]
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
awk 1 $1 | sort -k2 -t' '
|
mv $1 "$1.bak"
|
||||||
|
awk 1 "$1.bak" | sort -k2 -t' ' > $1
|
||||||
|
rm "$1.bak"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue