diff --git a/Run.sh b/Run.sh index 7e52f0a..3895a35 100755 --- a/Run.sh +++ b/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" }