Skip to content

Commit

Permalink
check $path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Nov 2, 2022
1 parent 51c7690 commit 5d30ddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debian/tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ chk-size() {
local minsize=$2
local size

if [ ! -e $path ]; then
error "$path does not exist."
fi

size=$(du -Dsm $path | awk '{print $1}')

if [ $size -lt $minsize ]; then
Expand Down

0 comments on commit 5d30ddc

Please sign in to comment.