mirror of
https://github.com/CosmicScale/PSBBN-Definitive-English-Patch.git
synced 2025-03-10 10:17:51 +01:00
Corrected size check for the OPL partition
This commit is contained in:
parent
4958bd4226
commit
f8894410ad
@ -208,7 +208,7 @@ for folder in APPS ART CFG CHT LNG THM VMC POPS CD DVD; do
|
||||
dir="${GAMES_PATH}/${folder}"
|
||||
[[ -d "$dir" ]] || sudo mkdir -p "$dir" || {
|
||||
echo "Error: Failed to create $dir. Make sure you have write permissions to $GAMES_PATH" | tee -a "${LOG_FILE}"
|
||||
read -n 1 -s -r -p "Press any key to continue..."
|
||||
read -n 1 -s -r -p "Press any key to exit..."
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
@ -732,7 +732,7 @@ for folder in APPS ART CFG CHT LNG THM VMC POPS CD DVD; do
|
||||
dir="${TOOLKIT_PATH}/OPL/${folder}"
|
||||
[[ -d "$dir" ]] || sudo mkdir -p "$dir" || {
|
||||
echo "Error: Failed to create $dir." | tee -a "${LOG_FILE}"
|
||||
read -n 1 -s -r -p "Press any key to continue..."
|
||||
read -n 1 -s -r -p "Press any key to exit..."
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
@ -747,7 +747,7 @@ PS2_SIZE=$((CD_FOLDER + DVD_FOLDER))
|
||||
echo | tee -a "${LOG_FILE}"
|
||||
echo "Size of PS2 games: $PS2_SIZE MB" | tee -a "${LOG_FILE}"
|
||||
|
||||
OPL_PARTITION=$(df -m | grep "${TOOLKIT_PATH}/OPL" | awk '{print $4}')
|
||||
OPL_PARTITION=$(df -m --output=size "${TOOLKIT_PATH}/OPL" | tail -n 1 | awk '{$1=$1};1')
|
||||
echo "Size of OPL partition: ${OPL_PARTITION} MB" | tee -a "${LOG_FILE}"
|
||||
|
||||
# Check if PS2_SIZE is greater than OPL_PARTITION - 128
|
||||
|
Loading…
x
Reference in New Issue
Block a user