Commit e11245b3 authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: make more readable/less errorprone: ~ is not expanded...

reproducible Debian: make more readable/less errorprone: ~ is not expanded when within double-quotes...
Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent f5edd502
......@@ -9,7 +9,7 @@
### this is running on coccia.debian.org via holger's crontab: ###
### ###
### # m h dom mon dow command ###
### 0 1,7,13,19 * * * ~holger/rsync2buildinfos.debian.net ###
### 0 1,7,13,19 * * * ~holger/rsync2buildinfos.debian.net ###
### ###
###################################################################
......@@ -19,7 +19,7 @@ DAY="$(date -u +%d)"
TARGETHOST="profitbricks-build7-amd64.debian.net"
TARGETDIR="/var/lib/jenkins/userContent/reproducible/debian/ftp-master.debian.org/buildinfo"
SOURCEDIR="/srv/ftp-master.debian.org/buildinfo/"
LOG=~/rsync-$YEAR-$MONTH-$DAY.log
LOG="$HOME/rsync-$YEAR-$MONTH-$DAY.log"
rsync_day(){
echo "$(date -u) - rsyncing .buildinfo files for $YEAR/$MONTH/$DAY..." >> $LOG
......@@ -61,7 +61,7 @@ else
DAY="$(date -u -d '1 day ago' +%d)"
rsync_day
# output yesterdays logfile if this hasn't been done yet
OLDLOG=~/rsync-$YEAR-$MONTH-$DAY.log
OLDLOG="$HOME/rsync-$YEAR-$MONTH-$DAY.log"
if [ -f "$OLDLOG" ] ; then
cat $OLDLOG
echo "$(date -u) - $OLDLOG flushed via cron output." >> $LOG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment