Skip to content

Commit

Permalink
Fix issue #450
Browse files Browse the repository at this point in the history
  • Loading branch information
scaronni committed Oct 21, 2024
1 parent 870ab9b commit d7291cd
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions dkms.in
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ 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 -n "."
done &
progresspid=$!
while true ; do
sleep 3
echo -n "."
done &
progresspid=$!
fi

if [[ -n "$cmd_output_file" ]]; then
Expand All @@ -120,11 +120,14 @@ invoke_command()
( eval "$cmd" ) >/dev/null 2>&1
exitval=$?
else
( eval "$cmd" )
exitval=$?
( eval "$cmd" )
exitval=$?
fi

[ -n "$progresspid" ] && kill "$progresspid" >/dev/null 2>&1
if [ -n "$progresspid" ]; then
kill "$progresspid" >/dev/null 2>&1
wait "$progresspid" 2>/dev/null
fi

if (( exitval > 0)); then
echo -en "(bad exit status: $exitval)"
Expand Down

0 comments on commit d7291cd

Please sign in to comment.