Skip to content

Commit

Permalink
Makefile: avoid unnecessary usage of shell
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 1, 2024
1 parent 8807507 commit 1ab01b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ publish: blog

.PHONY: today
today:
mkdir $(shell date '+%Y-%m-%d')
mkdir -p $(shell date '+%Y-%m-%d')

.PHONE: draft
draft:
mv $(FILE) $(shell dirname $(FILE))/.$(shell basename $(FILE))
mv "$(FILE)" "$(dir $(FILE)).$(notdir $(FILE))"

.PHONE: undraft
undraft:
mv $(FILE) $(shell dirname $(FILE))/$(shell echo $(shell basename $(FILE)) | tail -c +2)
mv "$(FILE)" "$(dir $(FILE))$(patsubst .%,%,$(notdir $(FILE)))"

.PHONY: clean
clean:
Expand Down

0 comments on commit 1ab01b4

Please sign in to comment.