Hey. When I try to download jarec for linux it opens as a text file for me. Sometimes it is downloaded as a .sh file
#!/bin/sh
# ***********************************************************
# jAReC install script for Linux OS (x86,amd64,arm32,arm64) *
# Only for Debian flavours of linux (Java 11) *
# Version 1.1 - Mar 1, 2023 *
# Š Dan Toma (YO3GGX) *
# ***********************************************************
VERSION="1.0"
TITLE='----------------------------------\njAReC v4 installer/updater version '$VERSION' for Debian based Linux distribution (including arm32 and arm64)\n----------------------------------\n'
ARCH=`dpkg --print-architecture`
TITLE=$TITLE'OS achitecture: '$ARCH'\n'
MSG=$TITLE'Usage: sh jarec_install.sh <option>\nwhere <option> can be:\n -i install\n -u update\n----------------------------------\n'
if [ $# -eq 0 ]; then
echo $MSG
exit 0
elif [ $1 = '-i' ]; then
echo $TITLE'jAReC v4 install'
JAVAV=`dpkg -s openjdk-11-jre| grep Version`
echo ' '
echo 'Check if Java 11 is installed...'
if [ `echo $JAVAV |grep -c Version` -gt 0 ]; then
echo 'Java '$JAVAV ' is already installed'
else
echo 'Installing Java Runtime...'
sudo apt-get install openjdk-11-jre
fi
# Now check if Java 11 is the default version and if not, make iyt default
if [ `update-alternatives --list java | grep -c java` -gt 1 ]; then
sudo update-alternatives --set java $(update-alternatives --list java | grep java-11)
echo 'Set Java 11 as default'
fi
echo ' '
echo 'Check if JavaFX 11 is installed...'
JAVAV=`dpkg -s openjfx| grep Version`
if [ `echo $JAVAV |grep -c Version` -gt 0 ]; then
echo 'JavaFX '$JAVAV ' is already installed'
else
echo 'Installing JavaFX Runtime...'
sudo apt-get install openjfx
fi
echo ' '
echo 'Check if wget is installed...'
JAVAV=`dpkg -s wget| grep Version`
if [ `echo $JAVAV |grep -c Version` -gt 0 ]; then
echo 'wget '$JAVAV' is already installed'
else
echo 'Installing wget...'
sudo apt-get install wget
fi
echo ' '
elif [ $1 = '-u' ]; then
echo $TITLE'jAReC v4 update'
else
echo $MSG
exit 0
fi
if test -f "jarec32.jar"; then
echo 'Remove old jar file'
rm -f jarec32.ja*
fi
if test -f "jarec64.jar"; then
echo 'Remove old jar file'
rm -f jarec64.ja*
fi
if test -f "jarec.sh"; then
echo 'Remove old run script'
rm -f jarec.sh
fi
echo '----------------------------------'
echo 'Downloading latest jAReC v4.x version ...'
FNAME='jarec64.jar'
if [ `wget
https://www.yo3ggx.ro/jAReC/v4/$FNAME 2>&1 |grep -c saved` -eq "0" ]; then
echo 'Cannot download the latest jAReC version from the central repository\nPlease check again later\n'
exit 0
fi
echo '----------------------------------'
echo 'Building run script (jare