mcm : add -l param list mc mod files

This commit is contained in:
_N3m0 2023-04-21 11:04:17 +02:00
parent 2448978438
commit ffcf960af1
1 changed files with 5 additions and 0 deletions

5
mcm
View File

@ -5,6 +5,11 @@
load=$1
cd ~/.minecraft/mods
if [[ $load == "-l" ]]; then
ls .
exit
fi
for modpack in `ls --ignore=*.jar`; do
if [ $(ls $modpack | wc -l) -eq 0 ]; then
mv *.jar $modpack