Skip to content

Commit

Permalink
fix(docker): fix cleanup_apt.sh (#5467)
Browse files Browse the repository at this point in the history
* echo

Signed-off-by: Yutaka Kondo <[email protected]>

* fix

Signed-off-by: Yutaka Kondo <[email protected]>

* remove echo

Signed-off-by: Yutaka Kondo <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: Yutaka Kondo <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
youtalk and pre-commit-ci[bot] authored Nov 21, 2024
1 parent 4a479b1 commit ef74e19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/scripts/cleanup_apt.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

function cleanup() {
local remove_var_lib_apt_lists=false
function cleanup_apt() {
local remove_var_lib_apt_lists=$1
apt-get autoremove -y && rm -rf "$HOME"/.cache
if "$remove_var_lib_apt_lists"; then
if [[ $remove_var_lib_apt_lists == true ]]; then
rm -rf /var/lib/apt/lists/*
fi
}

cleanup "$@"
cleanup_apt "$@"

0 comments on commit ef74e19

Please sign in to comment.