Skip to content

Commit

Permalink
fix shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Oct 19, 2024
1 parent 9c63dc3 commit 3ca5b52
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/png_convert_to_webp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ IMAGES_DIRECTORY="website/assets/img/posts"
POSTS_DIRECTORY="website/_posts"

print_wide_string() {
local string="$1"
local terminal_width=$(tput cols)
local string_length=${#string}
local remaining_width=$((terminal_width - string_length))
local string
local terminal_width
local string_length
local remaining_width

string="$1"
terminal_width=$(tput cols)
string_length=${#string}
remaining_width=$((terminal_width - string_length))

# Print the string followed by '#' characters to fill the remaining width
printf "%s" "$string "
Expand Down

0 comments on commit 3ca5b52

Please sign in to comment.