Skip to content

Commit

Permalink
do not continue if path does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 20, 2024
1 parent 7c674f6 commit 490a2dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debian/tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ chk-size() {

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

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

0 comments on commit 490a2dc

Please sign in to comment.