mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Don't error when checking target dir size if there is no target dir
This commit is contained in:
parent
26c901e2f2
commit
68260a48bb
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,11 @@ if [[ $# < 1 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! [[ -d target ]]; then
|
||||||
|
echo "target directory does not exist yet"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
max_size_gb=$1
|
max_size_gb=$1
|
||||||
|
|
||||||
current_size=$(du -s target | cut -f1)
|
current_size=$(du -s target | cut -f1)
|
||||||
|
|
Loading…
Reference in a new issue