Re: [PATCH 3/3] cache-tree: Write index with updated cache-tree after commit
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jul 1, 2014, 05:49 UTC
- Message-ID
- <53B24BF5.3020007@viscovery.net>
- In-Reply-To
- <53B2386B.4060802@web.de>
Am 7/1/2014 6:26, schrieb Torsten Bögershausen:
Show 9 quoted lines
> And as test -n tests for a non-zero string, > could we write like this (and drop the local ?)? > > if test -n "$1" > then > dir="$1/" > else > dir="" > fi
These six lines can be written as
dir="$1${1:+/}" &&and 'local' must be dropped because is not universally supported, yet.
-- Hannes