summaryrefslogtreecommitdiff
path: root/new-tag
diff options
context:
space:
mode:
Diffstat (limited to 'new-tag')
-rwxr-xr-xnew-tag5
1 files changed, 4 insertions, 1 deletions
diff --git a/new-tag b/new-tag
index fdbf4d9..42632a0 100755
--- a/new-tag
+++ b/new-tag
@@ -23,7 +23,10 @@ now="$(TZ=UTC date +'%F %T')"
langs="${LANGS:-en it}"
for tag in "$@"; do
- if [[ ! -d "$tag" ]]; then
+
+ if [[ -d "$tag" ]]; then
+ >&2 echo "tag \"$tag\" already exists"
+ else
mkdir -p "$tag"
for lang in $langs; do
{