From 53527776ec2cb0a0c03a86dbad7bb4808906f890 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 04:15:08 +0200 Subject: Fix in sed command invocation --- bin/add-new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/add-new.sh b/bin/add-new.sh index 3ba70e5..e3af99b 100755 --- a/bin/add-new.sh +++ b/bin/add-new.sh @@ -5,7 +5,7 @@ echo "Renaming..." TITLE="$(head -n 1 $NEWS_FILE)" TO_FILE=$NEWS_FILE-$(echo $TITLE | tr '[:upper:]' '[:lower:]' | sed -e 's/ /\_/g' ) IPFS_FILE=$(ipfs add -q $NEWS_FILE) -sed -e 's/Qm.*/'$IPFS_FILE'/' README +sed -i -e 's/Qm.*/'$IPFS_FILE'/' README mv $NEWS_FILE news/$TO_FILE echo "Adding to git repo..." git add news/$TO_FILE -- cgit v1.2.3