aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 04:15:08 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 04:15:08 +0200
commit53527776ec2cb0a0c03a86dbad7bb4808906f890 (patch)
tree5b9a391dd303bd5a22e5956c8f4fa97e9faa103d
parentb8d5195bd6ff084ff53548a5a9f5411c025c72e0 (diff)
download01-NEWS-master.tar.gz
01-NEWS-master.tar.bz2
01-NEWS-master.zip
Fix in sed command invocationHEADorigin/masterorigin/HEADmaster
-rwxr-xr-xbin/add-new.sh2
1 files changed, 1 insertions, 1 deletions
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