Skip to content

Commit

Permalink
Update "private-sample" target sisimai/set-of-emails#28
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Dec 21, 2024
1 parent 096c41b commit b1d38c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Developers.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ private-sample:
$(MKDIR) $(PRIVATEMAILS)/$$d; \
next_index=1001; \
fi; \
hash_value=`md5 -q $(E)`; \
hash_value=`md5 -q $(E) | cut -c 1-8`; \
if [ -n "`ls -1 $(PRIVATEMAILS)/$$d/ | grep $$hash_value`" ]; then \
echo 'Already exists:' `ls -1 $(PRIVATEMAILS)/$$d/*$$hash_value.$(SAMPLEPREFIX)`; \
else \
printf "[%05d] %s %s\n" $$next_index $$hash_value; \
printf "[%04d] %s %s\n" $$next_index $$hash_value; \
mv -v $(E) $(PRIVATEMAILS)/$$d/0$${next_index}-$${hash_value}.$(SAMPLEPREFIX); \
fi; \
break; \
Expand Down

0 comments on commit b1d38c7

Please sign in to comment.