diff options
Diffstat (limited to 'pcr/octave-image/octave-image.install')
-rw-r--r-- | pcr/octave-image/octave-image.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pcr/octave-image/octave-image.install b/pcr/octave-image/octave-image.install index 7c9ea5667..f86e8d16c 100644 --- a/pcr/octave-image/octave-image.install +++ b/pcr/octave-image/octave-image.install @@ -1,7 +1,11 @@ _pack=image +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + post_install() { - octave -q -f --eval "pkg rebuild -global $_pack" + _octave_run "pkg rebuild -global $_pack" } post_upgrade() { @@ -9,5 +13,5 @@ post_upgrade() { } post_remove() { - octave -q -f --eval "pkg rebuild -global" + _octave_run "pkg rebuild -global" } |