gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] Problems restoring database on Mac - unsupported 'editor'


From: Busser, Jim
Subject: [Gnumed-devel] Problems restoring database on Mac - unsupported 'editor' command
Date: Wed, 6 Nov 2013 08:57:11 +0000

It appears that the 'editor' command employed on line 121 of gm-restore_database.sh :

editor ${BACKUP}-roles.sql

is not universal across POSIX systems … while I found these references,


it is in any event not included in Mac OS nor is $EDITOR among the environment variables. As a result, running

gm-restore_database.sh

on Mac fails at line 121 with

line 121: editor: command not found.

Options:

1) insert, into the gm-restore_database.sh script, either

(above the 'editor' line)
alias editor='open -a TextEdit'

or a test like

if Mac
open -a TextEdit ${BACKUP}-roles.sql
else
editor ${BACKUP}-roles.sql

or

2) rely on a Mac maintainer to supply a Mac server package which does the above.
-- Jim

reply via email to

[Prev in Thread] Current Thread [Next in Thread]