diff --git a/README.md b/README.md index 9431aba..11918fd 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,11 @@ git clone https://github.com/terroo/wallset down-wallset cd down-wallset sudo sh install.sh ``` +# The installer says that a package is not installed, but are you sure it is? +Then force the installation with the parameter `--force`: +```sh +sudo sh install.sh --force +``` # Use ```sh diff --git a/install.sh b/install.sh index 9b433f6..21ad2d0 100755 --- a/install.sh +++ b/install.sh @@ -14,6 +14,13 @@ if [[ "$1" == "uninstall" ]]; then exit 0 fi + +if [[ "$1" == "--force" ]]; then + su root -c "cp wallset /usr/local/bin/ && chmod +x /usr/local/bin/wallset" + printf "%s\n" "${_lan[1]}" + exit 0 +fi + deps=("ffmpeg" "feh" "convert" "xrandr" "xdg-open" "bash" "sed")