??? What happened? How? [Solved]
Posted: 27 Jul 2019, 18:43
I created a simple script while on Porteus 4.0. One similar to others I've created that run without problems.
wine.sh
But when I run it on Porteus 5.0rc1 I get:
line 8 command!! Line 8 is blank.
$'\r' commands??
What happened and how do I fix it??
-update-
Good grief!! The quote marks were the cause. This works.
Some things require quotes and some things don't.
wine.sh
Code: Select all
#!/bin/sh
OPTIONAL="/mnt/sda6/porteus5.0/Optional/wine"
WINE="wine*.xzm"
LIBS="0050*.xzm"
echo guest | sudo -S activate $OPTIONAL/$WINE $OPTIONAL/$LIBS > /dev/null 2>&1 &
sleep 3
echo "RIGHT click .exe files to run via Wine."
Code: Select all
/mnt/sda6/porteus5.0/wine.sh: line 7: $'\r': command not found
/mnt/sda6/porteus5.0/wine.sh: line 8: $'\r': command not found
sleep: invalid time interval ‘3\r’
Try 'sleep --help' for more information.
RIGHT click .exe files to run via Wine.
$'\r' commands??
What happened and how do I fix it??
-update-
Good grief!! The quote marks were the cause. This works.
Code: Select all
#!/bin/sh
OPTIONAL=/mnt/sda6/porteus5.0/Optional/wine
WINE=wine*.xzm
LIBS=0050*.xzm
echo guest | sudo -S activate $OPTIONAL/$WINE $OPTIONAL/$LIBS > /dev/null 2>&1 &
sleep 3
echo "RIGHT click .exe files to run via Wine."