keep first result and order
This commit is contained in:
2
Run.sh
2
Run.sh
@@ -37,7 +37,7 @@ function del_ServerActors() {
|
||||
}
|
||||
|
||||
function getmodprefix() {
|
||||
_File=$(find $OUTPUT_DIR/Textures -type f -iname "CountryFlags32*\.utx" -exec basename {} \;)
|
||||
_File=$(find $OUTPUT_DIR/Textures -type f -iname "CountryFlags32*\.utx" -exec basename {} \; | sort -nr | head -n 1)
|
||||
BaseName="${_File%.*}"
|
||||
echo "$BaseName"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user