mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
Correct potential errors
This commit is contained in:
@@ -13,7 +13,7 @@ echo "***********************************************"
|
||||
# Check available capacity
|
||||
dir_avail() {
|
||||
df -h >/dev/null 2>&1 && h="$2"
|
||||
df -P $h "${1:-.}" 2>/dev/null | awk 'NR==2 {print $(NF-2)}'
|
||||
df -P $h "${1:-.}" 2>/dev/null | awk 'NR==2 {print $4}'
|
||||
}
|
||||
|
||||
ckcmd() { #检查命令
|
||||
|
||||
Reference in New Issue
Block a user