Commit 8fb82030 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Honor ${EDITOR} variable

parent 237281e7
......@@ -2,6 +2,10 @@
set -e
if [ -z "${EDITOR}" ] ; then
export EDITOR=gedit
fi
if [ $# -ne 3 ] ; then
echo "Run as $0 PALLET_NUMBER 'content origin' 'content'" 1>&2
echo " $0 1 'Förråd 3' 'Bordsben'" 1>&2
......@@ -34,6 +38,6 @@ $(echo "${CONTENT}" | sed -e 's/./_/g')
EOF
gedit ${TARGET}
${EDITOR} ${TARGET}
git add ${TARGET}
git commit -m "${TARGET} added"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment