From 38828a886808d66d6633ea7877940062b2740306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD=E4=BA=AD=E5=B7=B2=E7=9F=A3?= <37582641+lithedress@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:05:43 +0800 Subject: [PATCH] Update Medicat_Installer.sh Fix problem that some Linux may not have `mkfs.vfat` command. --- Medicat_Installer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Medicat_Installer.sh b/Medicat_Installer.sh index 4fcb7e0..6fbbf90 100755 --- a/Medicat_Installer.sh +++ b/Medicat_Installer.sh @@ -144,6 +144,10 @@ if ! [ $(which 7z 2>/dev/null) ]; then fi fi +if ! [ $(which mkfs.vfat 2>/dev/null) ]; then + sudo $pkgmgr $install_arg dosfstools +fi + if ! [ $(sudo which mkntfs 2>/dev/null) ]; then if [ "$os" == "centos" ]; then sudo $pkgmgr $install_arg ntfsprogs