Skip to content

Commit

Permalink
src/common: Fix ShellCheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Dec 4, 2023
1 parent ed7ec8c commit b6ab321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,11 @@ BEGIN {
LogEnter 'Checking disk space...\n'
local -i i
local -i total_blocks=0
local -i tmp_block_size tmp_blocks_free
local -i tmp_block_size tmp_blocks_free tmp_fs_type
tmp_block_size=$(stat -f -c %S "$system_dir")
tmp_blocks_free=$(stat -f -c %f "$system_dir")
local fs_type=$(stat -f -c %T "$system_dir")
if [[ "${fs_type}" != "ramfs" ]]
tmp_fs_type=$(stat -f -c %T "$system_dir")
if [[ "${tmp_fs_type}" != "ramfs" ]]
then
for ((i=0; i<${#found_files[*]}; i++))
do
Expand Down

0 comments on commit b6ab321

Please sign in to comment.