mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 12:41:46 +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")
|
||||
|
||||
if [[ "$pending_updates" -gt 0 ]]; then
|
||||
echo "Updates Available"
|
||||
echo "Updates Available"
|
||||
else
|
||||
echo ""
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -156,5 +156,3 @@ perform_updates() {
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
4
mole
4
mole
@@ -196,7 +196,7 @@ show_version() {
|
||||
|
||||
local sip_status
|
||||
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
|
||||
sip_status="$(tr '[:lower:]' '[:upper:]' <<< ${sip_status:0:1})${sip_status:1}"
|
||||
else
|
||||
@@ -204,7 +204,7 @@ show_version() {
|
||||
fi
|
||||
|
||||
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"
|
||||
if is_homebrew_install; then
|
||||
|
||||
Reference in New Issue
Block a user