dot

packages and services management
Log | Files | Refs | README

commit 40d567038ab4f3b734ead73710f8b40b3f400617
parent c6c81bf481d20d532687d71d0809763f9c2b230f
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 12 Apr 2017 01:14:27 +0200

fixed version

Diffstat:
Mbin/version | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/version b/bin/version @@ -11,7 +11,7 @@ NL=' die() { - printf "\033[1;31m%s\033[m\n" "$1" 1>&2 + printf '%s\n' "$1" 1>&2 exit 1 } @@ -39,8 +39,9 @@ new() { printf 'making a new revision\n' - find . -type f ! -path './v/*' | sort | xargs $SUM | tee v/tmp | sed 's/ /\n/' | xargs -n 2 cp + find . -type f ! -path './v/*' | sort | xargs $SUM | tee v/tmp | while read -r hash path + do [ -f "v/obj/$hash" ] || cp "$path" "v/obj/$hash" done