Skip to content

Commit 4a8238d

Browse files
authored
Minor Fixes
1 parent efe2660 commit 4a8238d

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
}
5353
}
5454
},
55-
"image": "mcr.microsoft.com/devcontainers/javascript-node",
55+
"image": "mcr.microsoft.com/devcontainers/base:debian",
5656
"mounts": [
5757
"source=${localWorkspaceFolder}/snippets,target=${containerWorkspaceFolder}/.vscode,type=bind,consistency=cached"
5858
],

.update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ cleanup_snapd() {
113113
# Provides output to indicate the cleanup process and handles errors gracefully.
114114
# Usage: Call this function to automate system cleanup tasks after updating the system.
115115
clean_up() {
116-
case ${ADJUSTED_ID} in
116+
case "${ADJUSTED_ID}" in
117117
debian)
118118
# rm -rf /var/lib/apt/lists/*
119119
cleanup_snapd
@@ -151,7 +151,7 @@ update_snapd() {
151151
# Supports Debian-based (apt-get), RPM-based (dnf/yum/microdnf), and Alpine (apk) package managers.
152152
# Prints messages indicating the update process and handles errors gracefully.
153153
update_os_pkg() {
154-
case ${ADJUSTED_ID} in
154+
case "${ADJUSTED_ID}" in
155155
debian)
156156
if [ "$(find /var/lib/apt/lists/* -maxdepth 1 -check_cmd f 2>/dev/null | wc -l)" -eq 0 ]; then
157157
println "Updating ${PKG_MGR_CMD} based packages..."
@@ -315,7 +315,7 @@ install_pkg() {
315315
pkg_name="$1"
316316

317317
if ! check_command "${pkg_name}"; then
318-
case ${ADJUSTED_ID} in
318+
case "${ADJUSTED_ID}" in
319319
debian)
320320
"${PKG_MGR_CMD}" update && "${INSTALL_CMD}" "${pkg_name}"
321321
;;

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://img.shields.io/github/license/gvatsal60/Linux-All-In-One-Update-Script)
44
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/gvatsal60/Linux-All-In-One-Update-Script/master.svg)](https://results.pre-commit.ci/latest/github/gvatsal60/Linux-All-In-One-Update-Script/HEAD)
5+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/fea72725a4634b089781f18915e01c21)](https://app.codacy.com/gh/gvatsal60/Linux-All-In-One-Update-Script/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
56
[![CodeFactor](https://www.codefactor.io/repository/github/gvatsal60/linux-all-in-one-update-script/badge)](https://www.codefactor.io/repository/github/gvatsal60/linux-all-in-one-update-script)
67
[![GitHub pull-requests](https://img.shields.io/github/issues-pr/gvatsal60/Linux-All-In-One-Update-Script.svg)](https://GitHub.com/gvatsal60/Linux-All-In-One-Update-Script/pull/)
78
[![GitHub issues](https://img.shields.io/github/issues/gvatsal60/Linux-All-In-One-Update-Script.svg)](https://GitHub.com/gvatsal60/Linux-All-In-One-Update-Script/issues/)

0 commit comments

Comments
 (0)