Add helper script to rename assets

This commit is contained in:
Jérôme Petazzoni
2017-11-08 10:41:56 -08:00
parent 2aad5319f9
commit 1f78264e9f

11
slides/rename.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
if ! [ -f "$1" ]; then
echo "File $1 not found, aborting."
exit 1
fi
if [ -f "$2" ]; then
echo "File $2 already exists, aborting."
exit 1
fi
git mv "$1" "$2"
sed -i "" "s,$1,$2," */*.md