Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a795172 authored by Koushik Dutta's avatar Koushik Dutta Committed by Ricardo Cerqueira
Browse files

Fix up the get-file-size function that was broken due to the prior commit that...

Fix up the get-file-size function that was broken due to the prior commit that made it utilize gnu stat (gstat)

Change-Id: I24bba2bfcb509ad1ad76d2260eedd685ba45c393
parent c8b8beb6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -137,10 +137,10 @@ endef

# $(1): The file to check
define get-file-size
GSTAT=$(which gstat) \
GSTAT=$(which gstat) ; \
if [ ! -z "$GSTAT" ]; then \
gstat -c "%z" $(1) \
gstat -c "%s" $(1) ; \
else \
stat -f "%z" $(1) \
stat -f "%z" $(1) ; \
fi
endef