mirror of
https://github.com/lisanet/PiShrink-macOS.git
synced 2025-12-23 18:50:09 +00:00
Autorepair fsck errors
This commit is contained in:
parent
4af698457e
commit
f83e3f341d
@ -131,7 +131,7 @@ else
|
||||
fi
|
||||
|
||||
#Make sure filesystem is ok
|
||||
e2fsck -f $loopback
|
||||
e2fsck -p -f $loopback
|
||||
minsize=`resize2fs -P $loopback | cut -d ':' -f 2 | tr -d ' ' | tr -d '\n'`
|
||||
if [[ $currentsize -eq $minsize ]]; then
|
||||
echo ERROR: Image already shrunk to smallest size
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user