Weired 'error składni: nieoczekiwany koniec pliku' w skrypcie bash
Nie mogę zrozumieć, co jest nie tak z następującym skryptem.
#!/bin/bash
if [ "$1" = "x" ]
then
echo Pushing web on sharada to origin.
else if [ "$1" = "y" ]
then
echo Pulling web on sharada from origin.
else
echo "Usage : arg x to push or y to pull."
fi
Jestem na Linuksie (Ubuntu) wxterm
.