@@ -237,7 +237,7 @@ if [[ $install_synth ]]; then
237237 apt_pkg_install " wah-plugins" optional
238238
239239 # install/update fluidpatcher
240- CUR_FP_VER=` sed -n ' /^__version__/s|[^0-9\.]*||gp' $installdir /fluidpatcher/__init__.py & > /dev/null `
240+ CUR_FP_VER=` sed -n ' /^__version__/s|[^0-9\.]*||gp' $installdir /fluidpatcher/__init__.py`
241241 FP_VER=` curl -s https://api.github.com/repos/GeekFunkLabs/fluidpatcher/releases/latest | sed -n ' /tag_name/s|[^0-9\.]*||gp' `
242242 if [[ ! $CUR_FP_VER == $FP_VER ]]; then
243243 inform " Installing/Updating FluidPatcher version $NEW_FP_VER ..."
@@ -306,11 +306,10 @@ if [[ $installtype == 1 ]]; then
306306 inform " Enabling SquishBox startup service..."
307307 chmod a+x $installdir /squishbox.py
308308 chmod a+x $installdir /lcdsplash.py
309- SB_VER=` sed -n ' /^__version__/s|[^0-9\.]*||gp' $installdir /squishbox.py & > /dev/null`
310- sed -i " /^HW_VERSION/s|[v0-9]\+|$hw_version |" $installdir /squishbox.py
311- sed -i " /^HW_VERSION/s|[v0-9]\+|$hw_version |" $installdir /lcdsplash.py
312- sed -i " /^SB_VERSION/s|[0-9\.]\+|$SB_VER |" $installdir /lcdsplash.py
313- sed -i " /^FP_VERSION/s|[0-9\.]\+|$FP_VER |" $installdir /lcdsplash.py
309+ SB_VER=` sed -n ' /^__version__/s|[^0-9\.]*||gp' $installdir /squishbox.py`
310+ sed -i " /^HW_VERSION/cHW_VERSION = '$hw_version '" $installdir /squishbox.py
311+ sed -i " /^HW_VERSION/cHW_VERSION = '$hw_version '" $installdir /lcdsplash.py
312+ sed -i " /^SB_VERSION/cSB_VERSION = '$SB_VER '"
314313 cat << EOF | sudo tee /etc/systemd/system/squishbox.service
315314[Unit]
316315Description=SquishBox
0 commit comments