Skip to content

Commit

Permalink
remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hkskoglund authored and scaronni committed Sep 20, 2024
1 parent 53d557a commit 4851510
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions dkms.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,31 +107,22 @@ invoke_command()
[[ $verbose ]] && echo -e "$cmd" || echo -en "$cmd_description..."

if [[ $cmd_mode == background && ! $verbose && $package_name != dkms*_test ]]; then

while true ; do
sleep 3
echo "."
done &

progresspid=$!

fi

if [[ -n "$cmd_output_file" ]]; then

( eval "$cmd" ) >> "$cmd_output_file" 2>&1
exitval=$?

elif [[ -z "$cmd_output_file" && $cmd_mode == background && ! $verbose ]]; then

( eval "$cmd" ) >/dev/null 2>&1
exitval=$?

else

( eval "$cmd" )
exitval=$?

fi

[ -n "$progresspid" ] && kill "$progresspid" >/dev/null 2>&1
Expand Down

0 comments on commit 4851510

Please sign in to comment.