Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npub1sccyq74jqx6t5l04a83d8h7cezt4765j5ztlws8p2ypy2tgv8sxsggcw4h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a res=($(sudo /usr/bin/btrfs qgroup show --raw -rF . | tail -1)) | |
if [[ ${res[3]} == "none" ]]; then | |
declare -a res=($(df /fs | tail -1)) | |
MAX=${res[1]} | |
FREE=${res[3]} | |
else | |
MAX=$((res[3] / 1024)) | |
USE=$((res[2] / 1024)) |
OlderNewer