Commit eafa4220 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Remove previous versions of spacecreator if already existing.

parent 860948ce
Pipeline #2085 failed with stage
in 9 minutes and 28 seconds
dpkg -l | grep '^ii.*spacecreator.*0.1.6d93e844' > /dev/null || {
echo "Installing the latest Space Creator..."
dpkg -l | grep spacecreator > /dev/null && {
echo "[-] Uninstalling previously existing version..."
sudo apt remove -y --force-yes spacecreator || exit 1
echo "[-] Installing the latest Space Creator..."
if wget -O $NEW_DEB "" ; then
sudo gdebi -n -o=--no-install-recommends $NEW_DEB || {
echo Failed to install $NEW_DEB...
echo "[x] Failed to install $NEW_DEB..."
ls -l $NEW_DEB
echo Aborting.
echo "[x] Aborting."
exit 1
rm -f $NEW_DEB
echo Failed to download the new Space Creator... Aborting.
echo "[x] Failed to download the new Space Creator... Aborting."
exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment