=== removed file 'bin/snap.marked' --- bin/snap.marked 2014-08-12 17:06:09 +0000 +++ bin/snap.marked 1970-01-01 00:00:00 +0000 @@ -1,32 +0,0 @@ -#!/bin/sh - -usage() { - printf >&2 "Usage: %s: snapshot_dir program\n" $(basename "$0") - printf >&2 "Mark directory with a timestamp and run program" - printf >&2 "remove mark when program exits" - exit 2 -} - -die() { - printf "%s\n" "$*" - exit 1 -} - -test $# -gt 1 || usage -SNAP_SRC="$1" -export SNAP_SRC -shift -test -d "$SNAP_SRC" || die "not a directory: $SNAP_SRC" -LOCKFILE="$SNAP_SRC/.snaprep" -touch "$LOCKFILE" || exit $? -flock -n 0 <"$LOCKFILE" || exit $? -echo $$ >"$LOCKFILE" || exit $? -rm -f "$SNAP_SRC"/.snapshot.[0-9]* 2>/dev/null -mark="$SNAP_SRC/.snapshot.$(date +%s)" -touch "$mark" || exit $? - -"$@" - -RETCODE=$? -rm -f "$mark" "$LOCKFILE" -exit $RETCODE === modified file 'bin/snap.push' --- bin/snap.push 2014-08-12 17:06:09 +0000 +++ bin/snap.push 2014-02-21 13:28:48 +0000 @@ -7,7 +7,7 @@ } die() { - printf "%s\n" "$*" + printf "%s" "$*" exit 1 }