Skip to content

Commit

Permalink
Restyled by shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and DerekNonGeneric committed Feb 9, 2024
1 parent 0f75ced commit d944aa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library-scripts/common-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ fi
export DEBIAN_FRONTEND=noninteractive

# Function to call apt-get if needed
apt_get_update_if_needed() {
if [ ! -d "/var/lib/apt/lists" ] || [ $(( $(wc -c < "/var/lib/apt/lists/") )) = "0" ]; then
apt_get_update_if_needed() {
if [ ! -d "/var/lib/apt/lists" ] || [ $(($(wc -c <"/var/lib/apt/lists/"))) = "0" ]; then
echo "Running apt-get update..."
apt-get update
else
Expand Down
4 changes: 2 additions & 2 deletions library-scripts/fish-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ elif [ "$USERNAME" = "none" ] || ! id -u "$USERNAME" >/dev/null 2>&1; then
USERNAME=root
fi

# Function to run apt-get if needed
# Function to run apt-get if needed
apt_get_update_if_needed() {
if [ ! -d "/var/lib/apt/lists" ] || [ $(( $(wc -c < "/var/lib/apt/lists/") )) = "0" ]; then
if [ ! -d "/var/lib/apt/lists" ] || [ $(($(wc -c <"/var/lib/apt/lists/"))) = "0" ]; then
echo "Running apt-get update..."
apt-get update
else
Expand Down

0 comments on commit d944aa5

Please sign in to comment.