ereport script
This commit is contained in:
parent
f2bcaf389e
commit
96cf21afb2
1 changed files with 12 additions and 0 deletions
12
scripts/ereport.sh
Executable file
12
scripts/ereport.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
DATE=$(date -I)
|
||||||
|
REPORT_PATH=$HOME/ereport-$(date -I).txt
|
||||||
|
if [[ -f "$REPORT_PATH" ]]; then
|
||||||
|
echo "Today's report already exists at $REPORT_PATH!"
|
||||||
|
else
|
||||||
|
echo "Syncing repositories..."
|
||||||
|
# sudo emerge --sync >> "$REPORT_PATH"
|
||||||
|
echo "Writing update report..."
|
||||||
|
sudo emerge --update --newuse --deep @world --pretend >> "$REPORT_PATH"
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue