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

Improvement for creating runcommand-on*.sh #13

Open
parker-hemphill opened this issue Sep 25, 2018 · 0 comments
Open

Improvement for creating runcommand-on*.sh #13

parker-hemphill opened this issue Sep 25, 2018 · 0 comments

Comments

@parker-hemphill
Copy link

You could use the following commands instead of printf:

echo -e '#!/bin/bash\n~/scripts/rclone_script/rclone_script.sh "down" "$1" "$2" "$3" "$4"\n' >>

and

echo -e '#!/bin/bash\n~/scripts/rclone_script/rclone_script.sh "up" "$1" "$2" "$3" "$4"\n' >>

You could also use printf like you were but you need to single quote the input to escape the ! in the shebang. I'd also recommend adding

chmod +x /opt/retropie/configs/all/runcommand-onstart.sh
and
chmod +x /opt/retropie/configs/all/runcommand-onend.sh after the file is created if it doesn't exist

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

1 participant