I am working on a "on-boot update" bash script, but opening it in the Konsole returns:
~~~~~~-~~~~~@~~~~~~-~~~~~-~~-~~~~~~~~-~~~:~/Documents$ ./update.sh
./update.sh: 3: ./update.sh: [True=True]: not found
~~~~~~-~~~~~@~~~~~~-~~~~~-~~-~~~~~~~~-~~~:~/Documents$
Here is the code (screenshot):
#!/bin.sh
upd=True
while [$upd=True]
do
    echo "Updateing..."
    end=0
    sudo apt-get -yV update
    if [$?=0 -o $end=0]
    then
        end=1
        sudo apt-get -yV upgrade
        if [$?=0 -o $end=1]
        then
            end=2
            sudo apt-get -yV autoremove
            if [$?=0 -o $end=2]
            then
                end=3
                sudo apt-get -yV autoclean
                if [$?=0 -o $end=3]
                then
                    end=4
                    sudo apt-get -yV dist-upgrade
                    if [$?=0 -o $end=4]
                    then
                        end=5
                        sudo apt -yV update
                        if [$?=0 -o $end=5]
                        then
                            end=6
                            sudo apt full-upgrade
                            if [$?=0 -o $end=6]
                            then
                                upd=False
                            fi
                        fi
                    fi
                fi
            fi
        fi
    fi
done
exit 0
 
     
    