fix: shellcheck tipps
This commit is contained in:
parent
9d6f036ead
commit
43417c1b97
3 changed files with 7 additions and 10 deletions
|
@ -15,17 +15,15 @@ for compose_file in /opt/docker/**/docker-compose.yml; do
|
|||
done
|
||||
|
||||
echo "> Containers have been updated."
|
||||
echo ""
|
||||
|
||||
confirm=n
|
||||
read -p "
|
||||
> Do you want to prune docker? [y/N]
|
||||
> WARNING! This will remove:
|
||||
echo "
|
||||
> WARNING! The following confirmation will remove:
|
||||
> - all stopped containers
|
||||
> - all networks not used by at least one container
|
||||
> - all dangling images
|
||||
> - unused build cache
|
||||
" confirm
|
||||
> - unused build cache"
|
||||
read -rp "> Do you want to prune docker? [y/N] " confirm
|
||||
echo ""
|
||||
|
||||
if [[ $confirm == [yY] ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue