mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 20:22:18 +03:00
Meta: Fix shellcheck issues in BuildIt.sh
This commit is contained in:
parent
962e7855c5
commit
f29fbe3c76
Notes:
sideshowbarker
2024-07-19 04:29:16 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/f29fbe3c761 Pull-request: https://github.com/SerenityOS/serenity/pull/2917 Reviewed-by: https://github.com/nico
@ -79,7 +79,7 @@ pushd "$DIR"
|
||||
|
||||
DEPS_CONFIG="
|
||||
uname=$(uname),TARGET=${TARGET},
|
||||
BuildItHash=$($MD5SUM $(basename $0)),
|
||||
BuildItHash=$($MD5SUM "$(basename "$0")"),
|
||||
MAKE=${MAKE},MD5SUM=${MD5SUM},NPROC=${NPROC},
|
||||
CC=${CC},CXX=${CXX},with_gmp=${with_gmp},LDFLAGS=${LDFLAGS},
|
||||
BINUTILS_VERSION=${BINUTILS_VERSION},BINUTILS_MD5SUM=${BINUTILS_MD5SUM},
|
||||
@ -106,6 +106,9 @@ pushd "$DIR"
|
||||
# Travis preserves timestamps. Don't ask me why, but it does.
|
||||
# We can exploit this to get an easy approximation of recent-ness.
|
||||
# Our purging algorithm is simple: keep only the newest X entries.
|
||||
# Note that `find` doesn't easily support ordering by date,
|
||||
# and we control the filenames anyway.
|
||||
# shellcheck disable=SC2012
|
||||
ls -t | tail "-n+${KEEP_CACHE_COUNT}" | xargs -r rm -v
|
||||
echo "After deletion:"
|
||||
ls -l
|
||||
|
Loading…
Reference in New Issue
Block a user