Merge pull request #41 from rebecca554owen/patch-1

fix provider error
This commit is contained in:
chauncey 2024-01-24 18:39:28 +08:00 committed by GitHub
commit e4019a531b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ set_config(){
sed -i 's/domain="[0-9A-z\.\-]*"/domain="'$domain'"/' $mtp_config
fi
if [ "$provider" ] && [[ "$provider" =~ ^[1-2]$ ]]; then
sed -i 's/provider=[0-9]\+/cat /='$provider'/' $mtp_config
sed -i 's/provider=[0-9]\+/provider="'$provider'"/' $mtp_config
fi
}