Skip to content

Commit ea90925

Browse files
committed
install.sh: Replace echo with printf
Based on https://stackoverflow.com/questions/48344624/echo-prints-n-differently-between-bin-sh-and-bin-bash recommended is to use printf, hence replaced echo. Signed-off-by: Dhruva Gole <goledhruva@gmail.com>
1 parent 619154b commit ea90925

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
API_FOLDER=~/.ArduinoCore-API
44
if [ ! -d "$API_FOLDER" ] ; then
5-
echo "Cloning ArduinoCore API in" $API_FOLDER
5+
printf '%s\n' "Cloning ArduinoCore API in $API_FOLDER"
66
git clone git@github.com:arduino/ArduinoCore-API ~/.ArduinoCore-API
77
else
8-
echo "API Folder already exists, skipping clone..."
8+
printf '%s\n' "API Folder already exists, skipping clone..."
99
fi
1010

11-
echo "Commenting out WCharacter.h because it fails to build properly"
11+
printf '%s\n' "Commenting out WCharacter.h because it fails to build properly"
1212
sed '/WCharacter.h/ s/./\/\/ &/' ~/.ArduinoCore-API/api/ArduinoAPI.h > ~/.ArduinoCore-API/api/tmpArduinoAPI.h
1313
mv ~/.ArduinoCore-API/api/tmpArduinoAPI.h ~/.ArduinoCore-API/api/ArduinoAPI.h
1414

15-
echo -e "\n\nLinking..."
15+
printf '%s\n' "Linking..."
1616
ln -sf ~/.ArduinoCore-API/api cores/arduino/.
1717

18-
echo -e "\nModule Successfully installed..."
18+
printf '%s\n' "Module Successfully setup..."

0 commit comments

Comments
 (0)