️ perf(format): code and ensured consistent indentation for better readability

This commit is contained in:
eshanized
2024-12-30 01:36:41 +05:30
parent 3bb3eda186
commit 65ecb84500

View File

@@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
# Check if /proc/cmdline exists
if [[ -f /proc/cmdline ]]; then if [[ -f /proc/cmdline ]]; then
# Check if booting from a Btrfs snapshot
if grep -qE 'subvol=@/.snapshots/[0-9]+/snapshot' /proc/cmdline; then if grep -qE 'subvol=@/.snapshots/[0-9]+/snapshot' /proc/cmdline; then
echo "Booting from a Btrfs snapshot." echo "Booting from a Btrfs snapshot."
exit 0 exit 0
@@ -9,6 +11,7 @@ if [[ -f /proc/cmdline ]]; then
exit 1 exit 1
fi fi
else else
echo "/proc/cmdline not found." # Handle the case where /proc/cmdline is missing
echo "Error: /proc/cmdline not found."
exit 2 exit 2
fi fi