Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell error on check_dimensions #14

Open
one000mph opened this issue Oct 28, 2020 · 2 comments
Open

Shell error on check_dimensions #14

one000mph opened this issue Oct 28, 2020 · 2 comments

Comments

@one000mph
Copy link

I am trying to use this for screen recording within ubuntu:20.10 but when setting the screen size I get an error

[ screencast ] initializing
/usr/local/bin/screencast: 3215: arithmetic expression: expecting primary: ""1280" % 8"

This is the command I'm using
screencast -n -s 1280x720 -d :44.0 -r 30 -i pulse -1 $RECORDING_NAME

It appears that this is a shell issue running this part of screen.sh

check_dimension() {
    # the dimension will be a multiple of 8 if the remainder is 0
    [ "$(("$1" % 8))" = '0' ]
}

I think what's needed here is to remove the quotes around $1 since the script is complaining that's not a number?? I was able to hack the installed script and get it working that way. Thanks for making a cool tool!

@dbermond
Copy link
Owner

What shell are you using to execute screencast?

Thank you for appreciating this software :)

@elgplayer
Copy link

Im getting the error using zsh as my shell. @one000mph solution worked like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants