mirror of
https://github.com/tw93/Mole.git
synced 2026-02-09 08:29:20 +00:00
chore: auto format code
This commit is contained in:
@@ -280,9 +280,9 @@ get_software_updates() {
|
|||||||
pending_updates=$(defaults read /Library/Preferences/com.apple.SoftwareUpdate LastRecommendedUpdatesAvailable 2> /dev/null || echo "0")
|
pending_updates=$(defaults read /Library/Preferences/com.apple.SoftwareUpdate LastRecommendedUpdatesAvailable 2> /dev/null || echo "0")
|
||||||
|
|
||||||
if [[ "$pending_updates" -gt 0 ]]; then
|
if [[ "$pending_updates" -gt 0 ]]; then
|
||||||
echo "Updates Available"
|
echo "Updates Available"
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -156,5 +156,3 @@ perform_updates() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
mole
4
mole
@@ -196,7 +196,7 @@ show_version() {
|
|||||||
|
|
||||||
local sip_status
|
local sip_status
|
||||||
if command -v csrutil > /dev/null; then
|
if command -v csrutil > /dev/null; then
|
||||||
sip_status=$(csrutil status 2>/dev/null | grep -o "enabled\|disabled" || echo "Unknown")
|
sip_status=$(csrutil status 2> /dev/null | grep -o "enabled\|disabled" || echo "Unknown")
|
||||||
# Capitalize first letter
|
# Capitalize first letter
|
||||||
sip_status="$(tr '[:lower:]' '[:upper:]' <<< ${sip_status:0:1})${sip_status:1}"
|
sip_status="$(tr '[:lower:]' '[:upper:]' <<< ${sip_status:0:1})${sip_status:1}"
|
||||||
else
|
else
|
||||||
@@ -204,7 +204,7 @@ show_version() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local disk_free
|
local disk_free
|
||||||
disk_free=$(df -h / 2>/dev/null | awk 'NR==2 {print $4}' || echo "Unknown")
|
disk_free=$(df -h / 2> /dev/null | awk 'NR==2 {print $4}' || echo "Unknown")
|
||||||
|
|
||||||
local install_method="Manual"
|
local install_method="Manual"
|
||||||
if is_homebrew_install; then
|
if is_homebrew_install; then
|
||||||
|
|||||||
Reference in New Issue
Block a user