Fix setup scripts
This commit is contained in:
parent
96246e7393
commit
bd794415fb
2 changed files with 4 additions and 4 deletions
|
|
@ -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!"
|
||||||
|
|
|
||||||
|
|
@ -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!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue