diff options
author | wangjiezhe | 2015-10-27 18:31:10 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-27 18:31:10 +0800 |
commit | 19535c26afb16007be9011a2b38de8b01e0eeacf (patch) | |
tree | 9665ca7bdd04544fa0393e5af79a7fc4c1b9f8dd /octave-divand.install | |
parent | e58b9bf37cfb95bad75db705a27310d76f101639 (diff) | |
download | aur-19535c26afb16007be9011a2b38de8b01e0eeacf.tar.gz |
Use _octave_run
Diffstat (limited to 'octave-divand.install')
-rw-r--r-- | octave-divand.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-divand.install b/octave-divand.install index 34a26a1c0d49..8c967942f005 100644 --- a/octave-divand.install +++ b/octave-divand.install @@ -1,7 +1,11 @@ _pack=divand +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + post_install() { - octave-cli -q -f --eval "pkg rebuild -global $_pack" + _octave_run "pkg rebuild -global $_pack" } post_upgrade() { @@ -9,5 +13,5 @@ post_upgrade() { } post_remove() { - octave-cli -q -f --eval "pkg rebuild -global" + _octave_run "pkg rebuild -global" } |