mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
Add helper script to rename assets
This commit is contained in:
11
slides/rename.sh
Executable file
11
slides/rename.sh
Executable 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
|
||||
Reference in New Issue
Block a user