Mostly glaring problems found by shellcheck#55
Mostly glaring problems found by shellcheck#55nabijaczleweli wants to merge 1 commit intocarnager:masterfrom
Conversation
| "< Return to Main Menu") mainMenu;; | ||
| esac | ||
| if [[ $rofi_exit -eq 10 ]]; then | ||
| if [[ "$rofi_exit" -eq 10 ]]; then |
There was a problem hiding this comment.
Above, you replaced $paste_path with "${paste_path}". Why not here?
There was a problem hiding this comment.
Dunno, likely because it has the ${} version just below it, I guess?
| ffmpeg_display="$DISPLAY" | ||
| ffmpeg -f x11grab ${border} -s "$res" -i "$ffmpeg_display+$ffmpeg_offset" $ffaudio $encopts "${vid_path}/${filename}" & | ||
| echo "$!" > "$SCREENCAST_PIDFILE" | ||
| notify-send -a "teiler" -t "1" "teiler" "Screencast started" |
There was a problem hiding this comment.
Would be nice to have all this simplification as a separate commit. Would make reviewing easier.
There was a problem hiding this comment.
I no longer use teiler so I no longer have a way of usefully testing this, and I can't guarantee anything I do to this mess is correct by just looking at it, unfortunately.
|
It should behave the same (save for some of the bits that exit early instead of operating in the wrong working directory). As for guidelines, I don't see any, so I can't add to them. |
|
That's ok, I'll just make a mental note of that myself. You did run teiler with these changes successfully for a while, correct? |
|
Yeah, if memory serves |
For the record, the original shellcheck logs: shellcheck.orig.gz, shellcheck_helper.orig.gz
I tried to retain the original semantics, if any, but to make them less dangerous/work better. Some warnings still remain (like the &&|| not being ifelse one). I would recommend going through them.
Current shellcheck logs:
and