Last active
September 23, 2022 12:19
-
-
Save kescherCode/f29c9d4945feb2fcaf4ba7c6103a83f3 to your computer and use it in GitHub Desktop.
Revisions
-
kescherCode revised this gist
Feb 6, 2022 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,14 @@ #!/usr/bin/env bash sudouser="kescher" aur_helper="yay" last_update_notification="/usr/local/etc/last_update_notification" subjectline="Update notification for $(hostname -s)" fromaddress="Update Notification <[email protected]>" toaddress="Jeremy Kescher <[email protected]>" repo=$(checkupdates) aur=$(sudo -u "$sudouser" "$aur_helper" -Qu --aur | sort) update="" if [[ -n "$repo" && -n "$aur" ]]; then -
kescherCode revised this gist
May 2, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ update="" if [[ -n "$repo" && -n "$aur" ]]; then update="Repo:"$'\n'"$repo"$'\n'"AUR:"$'\n'"$aur" elif [[ -n "$repo" ]]; then update="Repo:"$'\n'"$repo" elif [[ -n "$aur" ]]; then update="AUR:"$'\n'"$aur" else :>"$last_update_notification" && exit -
kescherCode revised this gist
Apr 19, 2021 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,8 +18,6 @@ elif [[ -n "$aur" ]]; then update="AUR:"$'\n'"$aur" else :>"$last_update_notification" && exit fi [[ "$(cat "$last_update_notification")" == "$update" ]] && exit -
kescherCode revised this gist
Apr 17, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ fromaddress="Update Notification <[email protected]>" toaddress="Jeremy Kescher <[email protected]>" repo=$(checkupdates) aur=$(sudo -u "$sudouser" yay -Qu --aur | sort) update="" if [[ -n "$repo" && -n "$aur" ]]; then -
kescherCode revised this gist
Apr 17, 2021 . 1 changed file with 10 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,10 +10,16 @@ repo=$(checkupdates) aur=$(sudo -u "$sudouser" yay -Qu --aur) update="" if [[ -n "$repo" && -n "$aur" ]]; then update="Repo:"$'\n'"$repo"$'\n'"AUR:"$'\n'"$aur" elif [[ -n "$repo" ]]; then update="repo:"$'\n'"$repo" elif [[ -n "$aur" ]]; then update="AUR:"$'\n'"$aur" else :>"$last_update_notification" && exit fi echo "$update" echo "$(cat "$last_update_notification")" [[ "$(cat "$last_update_notification")" == "$update" ]] && exit -
kescherCode revised this gist
Oct 13, 2020 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,18 +4,18 @@ sudouser="kescher" last_update_notification="/usr/local/etc/last_update_notification" subjectline="Update notification for $(hostname -s)" fromaddress="Update Notification <[email protected]>" toaddress="Jeremy Kescher <jeremy@kescher.at>" repo=$(checkupdates) aur=$(sudo -u "$sudouser" yay -Qu --aur) update="" [[ -z "$repo" && -z "$aur" ]] && :>"$last_update_notification" && exit [ -n "$repo" ] && update="Repo:"$'\n'"$repo" [ -n "$aur" ] && update="$update"$'\n'"AUR:"$'\n'"$aur" [[ "$(cat "$last_update_notification")" == "$update" ]] && exit echo "$update" | mail -s "$subjectline" -r "$fromaddress" "$toaddress" echo "$update" > "$last_update_notification" -
kescherCode revised this gist
Oct 13, 2020 . No changes.There are no files selected for viewing
-
kescherCode created this gist
Oct 13, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ #!/usr/bin/env bash sudouser="kescher" last_update_notification="/usr/local/etc/last_update_notification" subjectline="Update notification for $(hostname -s)" fromaddress="Update Notification <[email protected]>" toaddress="Jeremy Kescher <[email protected]>" repo=$(checkupdates) aur=$(sudo -u "$sudouser" yay -Qu --aur) update="" [[ -z "$repo" && -z "$aur" ]] && :>$last_update_notification && exit [ -n "$repo" ] && update="Repo:"$'\n'"$repo" [ -n "$aur" ] && update="$update"$'\n'"AUR:"$'\n'"$aur" [[ $(cat $last_update_notification) == "$update" ]] && exit echo "$update" | mail -s "$subjectline" -r "$fromaddress" "$toaddress" echo "$update" > $last_update_notification