updating /etc/shadow is pretty bad
DOWNLOAD="$(sed -n '2p' <<<"$SPEEDOUT" | grep -o '[0-9].*')"
UPLOAD="$(sed -n '3p' <<<"$SPEEDOUT" | grep -o '[0-9].*')"
+[ -e ~/.cache/instantos/speedtest ] || touch ~/.cache/instantos/speedtest
sed -i "1i$(date '+%Y.%m.%d.%H.%M'):$PING:$DOWNLOAD:$UPLOAD" ~/.cache/instantos/speedtest
sed -i '400,$d' ~/.cache/instantos/speedtest
sudo pacman -S --noconfirm pacman-contrib
fi
-if [ -z "$DIFFPROG" ]; then
- if ! command -v vim; then
- export DIFFPROG=nvim
- fi
-elif ! command -v "$DIFFPROG"; then
- export DIFFPROG=nvim
-fi
-
-sudo pacdiff
-
if grep '..' /etc/pacman.d/mirrorlist | grep -v '^#' | grep -q '..'; then
echo "mirrors found"
else
if grep -q '..' /tmp/updatechoice; then
if grep 'update now' /tmp/updatechoice; then
- ~/.config/instantos/default/terminal -e sh -c yay
- if imenu -c "there are updates for root owned config files, update now?"
- then
- if pacdiff --output | grep -q '...'
- then
- ~/.config/instantos/default/terminal -e sh -c "sudo pacdiff"
- fi
- fi
+ instantutils open terminal -e bash -c yay
fi
else
kill "$TMPPID"