Fix setup scripts

This commit is contained in:
oitsjustjose 2025-05-23 22:25:30 -05:00
commit bd794415fb
2 changed files with 4 additions and 4 deletions

View file

@ -19,8 +19,8 @@ mkdir -p /opt/scripts
cp "../python/$script_fn" "/opt/scripts/$script_fn" cp "../python/$script_fn" "/opt/scripts/$script_fn"
# Create executable as a script, install to local/bin # Create executable as a script, install to local/bin
echo "/usr/bin/python3 /opt/scripts/$script_fn" > $cmd_name echo "/usr/bin/python3 /opt/scripts/$script_fn \"\$@\"" > $cmd_name
chmod +x $cmd_name chmod +x $cmd_name
mv $cmd_name /usr/local/bin mv $cmd_name /usr/local/bin
echo "Done! Try the command '$cmd_name' to see the effects!" echo "Done! Try the command '$cmd_name' to see the effects!"

View file

@ -19,8 +19,8 @@ mkdir -p /opt/scripts
cp "../python/$script_fn" "/opt/scripts/$script_fn" cp "../python/$script_fn" "/opt/scripts/$script_fn"
# Create executable as a script, install to local/bin # Create executable as a script, install to local/bin
echo "/usr/bin/python3 /opt/scripts/$script_fn" > $cmd_name echo "/usr/bin/python3 /opt/scripts/$script_fn \"\$@\"" > $cmd_name
chmod +x $cmd_name chmod +x $cmd_name
mv $cmd_name /usr/local/bin mv $cmd_name /usr/local/bin
echo "Done! Try the command '$cmd_name' to see the effects!" echo "Done! Try the command '$cmd_name' to see the effects!"