私は「オンブート更新」bashスクリプトに取り組んが、konsoleの中で、それを開くと返されています:bashの更新スクリプトがtrueを返したが、とにかく失敗し
:ここ[email protected]~~~~~~-~~~~~-~~-~~~~~~~~-~~~:~/Documents$ ./update.sh
./update.sh: 3: ./update.sh: [True=True]: not found
[email protected]~~~~~~-~~~~~-~~-~~~~~~~~-~~~:~/Documents$
コード(
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
コードを質問にテキストとして掲載する必要があります。 – SurvivalMachine
何が\ @サバイバルマシンが言っていることに同意する。 – sjsam
ここにコードを投稿する前にhttp://shellcheck.netを使用する方法を学んでください。 **そして**スクリーンショットを投稿しないでください! ;-) がんばろう。 – shellter