mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-26 07:55:37 +00:00
Removed log statements where they would break returned information
This commit is contained in:
parent
efad8a8ad9
commit
7e7290cb80
|
@ -188,8 +188,6 @@ get_cheevos_token_dialog() {
|
||||||
# This function will return a RetroAchvievements token from a valid username and password, will return "login failed" otherwise
|
# This function will return a RetroAchvievements token from a valid username and password, will return "login failed" otherwise
|
||||||
# USAGE: get_cheevos_token_dialog
|
# USAGE: get_cheevos_token_dialog
|
||||||
|
|
||||||
log d "Opening RetroAchievements dialog"
|
|
||||||
|
|
||||||
local cheevos_info=$(zenity --forms --title="Cheevos" \
|
local cheevos_info=$(zenity --forms --title="Cheevos" \
|
||||||
--text="Username and password." \
|
--text="Username and password." \
|
||||||
--separator="^" \
|
--separator="^" \
|
||||||
|
|
|
@ -16,7 +16,6 @@ directory_browse() {
|
||||||
if [ $? == 0 ]
|
if [ $? == 0 ]
|
||||||
then
|
then
|
||||||
path_selected=true
|
path_selected=true
|
||||||
log i "\"$target\" selected."
|
|
||||||
echo "$target"
|
echo "$target"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
@ -47,7 +46,6 @@ file_browse() {
|
||||||
if [ $? == 0 ]
|
if [ $? == 0 ]
|
||||||
then
|
then
|
||||||
file_selected=true
|
file_selected=true
|
||||||
log i "\"$target\" selected."
|
|
||||||
echo "$target"
|
echo "$target"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
@ -71,12 +69,9 @@ verify_space() {
|
||||||
source_size=$((source_size+(source_size/10))) # Add 10% to source size for safety
|
source_size=$((source_size+(source_size/10))) # Add 10% to source size for safety
|
||||||
dest_avail=$(df -k --output=avail "$2" | tail -1)
|
dest_avail=$(df -k --output=avail "$2" | tail -1)
|
||||||
|
|
||||||
log i "Checking free disk space"
|
|
||||||
if [[ $source_size -ge $dest_avail ]]; then
|
if [[ $source_size -ge $dest_avail ]]; then
|
||||||
log e "Not enough disk space: $dest_avail"
|
|
||||||
echo "false"
|
echo "false"
|
||||||
else
|
else
|
||||||
log i "Disk space is enough: $dest_avail"
|
|
||||||
echo "true"
|
echo "true"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -368,7 +363,6 @@ do
|
||||||
if [ $? == 0 ] #yes
|
if [ $? == 0 ] #yes
|
||||||
then
|
then
|
||||||
path_selected=true
|
path_selected=true
|
||||||
log i "\"$target/retrodeck\" selected."
|
|
||||||
echo "$target/retrodeck"
|
echo "$target/retrodeck"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
@ -410,7 +404,6 @@ finit_user_options_dialog() {
|
||||||
--column "option_flag" \
|
--column "option_flag" \
|
||||||
"${finit_available_options[@]}")
|
"${finit_available_options[@]}")
|
||||||
|
|
||||||
log i "User choiches: \"${choices[*]}\"."
|
|
||||||
echo "${choices[*]}"
|
echo "${choices[*]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -652,7 +645,7 @@ manage_ryujinx_keys() {
|
||||||
|
|
||||||
# Create symlink
|
# Create symlink
|
||||||
ln -s "$file" "$symlink"
|
ln -s "$file" "$symlink"
|
||||||
echo "Created symlink: \"$symlink\""
|
log i "Created symlink: \"$symlink\""
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
log w "No files found in $bios_folder/switch/keys. Continuing..."
|
log w "No files found in $bios_folder/switch/keys. Continuing..."
|
||||||
|
|
Loading…
Reference in a new issue