git-shell-commands/mirror
Billy Brawner 7c408d6d70 Use sh instead of bash for scripts
Signed-off-by: Billy Brawner <billy@wbrawner.com>
2019-12-22 16:33:19 -06:00

10 lines
169 B
Bash
Executable file

#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Please enter a repository URL"
exit 1
fi
/usr/bin/git clone --mirror "$1"
echo "Successfully created a mirror of $1"