#!/bin/bash latest_appimage=$(wget -q -O- https://files.kde.org/digikam/FILES | grep -o -E 'digiKam.*x86-64.appimage') if [[ ! -f $latest_appimage ]];then wget "https://files.kde.org/digikam/$latest_appimage" chmod +x $latest_appimage else echo "[OKOK] - File $latest_appimage is present yet" fi if [ "digiKam_latest" -ef "$latest_appimage" ];then echo "[OKOK] - digiKam is pointing to $latest_appimage not changing symlink" else echo "[CHNG] - digiKam is not pointing to $latest_appimage changing symlink" ln -s -f $latest_appimage digiKam_latest fi