oh-my-git/scripts/drop

10 lines
146 B
Text
Raw Permalink Normal View History

#!/usr/bin/env bash
echo "Dropping $1!"
mv "$HOME/inventory/$1" .
if [ "$#" -eq 3 ]; then
echo "x = $2" > "$1"
echo "y = $3" >> "$1"
fi