Skip to content

Commit

Permalink
Bracket Consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Fredriksson <[email protected]>
  • Loading branch information
djarbz and mafredri authored Oct 24, 2024
1 parent 026a5bc commit 4fc9f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kasmvnc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ install_deb() {
# Define the directory to check
CACHE_DIR="/var/lib/apt/lists/partial"
# Check if the directory exists and was modified in the last 60 minutes
if [ ! -d "$CACHE_DIR" ] || ! find "$CACHE_DIR" -mmin -60 -print -quit &> /dev/null; then
if [[ ! -d "$CACHE_DIR" ]] || ! find "$CACHE_DIR" -mmin -60 -print -quit &> /dev/null; then
echo "Stale Package Cache, updating..."
# Update package cache with a 300-second timeout for dpkg lock
sudo apt-get -o DPkg::Lock::Timeout=300 -qq update
Expand Down

0 comments on commit 4fc9f6d

Please sign in to comment.