OSDN Git Service

remove pacdiff (for now)
authorpaperbenni <paperbenni@gmail.com>
Thu, 26 Nov 2020 13:27:23 +0000 (14:27 +0100)
committerpaperbenni <paperbenni@gmail.com>
Thu, 26 Nov 2020 13:27:23 +0000 (14:27 +0100)
updating /etc/shadow is pretty bad

programs/instantspeedtest
programs/instantupdate
programs/instantupdatenotify

index fb6b9d8..4b16984 100644 (file)
@@ -17,6 +17,7 @@ PING="$(sed -n '1p' <<<"$SPEEDOUT" | grep -o '[0-9].*')"
 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
 
index 528675f..c95c862 100755 (executable)
@@ -30,16 +30,6 @@ if ! command -v pacdiff; then
     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
index 60d805b..fcc4e60 100755 (executable)
@@ -37,14 +37,7 @@ done
 
 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"