fix(script): sort-symbol-file script now overwrites the original by creating a backup file

This commit is contained in:
phaneron 2024-11-27 02:01:04 -05:00
parent e1bab2b375
commit cfb921e9fa

View file

@ -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"