this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

scr: fix behavior on exit

yemou a1b488fd dcedf0f1

+5 -5
+5 -5
scritps/scr
··· 1 1 #!/bin/sh 2 - # shellcheck disable=SC1090,SC2154 2 + # shellcheck disable=SC1090,SC1091,SC2154 3 3 4 4 # SC1090 & SC2154 5 5 # The files sourced are user generated files that should contain the needed ··· 115 115 [ "$microphone" ] && [ "$desktop_audio" ] && \ 116 116 { args="$args -filter_complex amix=inputs=2"; } 117 117 118 - # Pressing Ctrl+C will exit the script instead of just wf-recorder. 119 - # Intercept Ctrl+C and exit wf-recorder instead of the script 120 - trap 'kill -2 $aud_pid' INT 118 + # Pressing Ctrl+C will exit the script instead of just ffmpeg. 119 + # Intercept Ctrl+C and do nothing. 120 + trap '' INT 121 121 122 122 # shellcheck disable=SC2086 123 123 # Word splitting is favorable here ··· 182 182 183 183 # Pressing Ctrl+C will exit the script instead of just wf-recorder. 184 184 # Intercept Ctrl+C and exit wf-recorder instead of the script 185 - trap 'kill -2 $rec_pid' INT 185 + trap '' INT 186 186 187 187 if [ "$output" ]; then set -- -o "$output"; else set -- -g "$(slurp)"; fi 188 188 # Word splitting is favorable here