mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
12 lines
204 B
Bash
Executable File
12 lines
204 B
Bash
Executable File
#!/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
|