mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00: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
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue