1 2 3 4 5 6 7 8 9 10
#!/bin/bash # Change the description of a repo. if [[ $1 == *..* ]]; then echo "No .." >&2 exit 1 fi echo "Enter the new description and then EOF (^D)" cat >"$HOME/$1.git/description"