diff options
author | wangjiezhe | 2015-10-28 11:55:02 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-28 11:55:02 +0800 |
commit | 388828b0572324dd888d9465900485c804326e79 (patch) | |
tree | 85aafb3cc5a564ce8638b2a04af79745062b2e73 /octave-secs2d.install | |
parent | 73706e880bb6051aebe737dcffc2090845578928 (diff) | |
download | aur-388828b0572324dd888d9465900485c804326e79.tar.gz |
Use _octave_run
Diffstat (limited to 'octave-secs2d.install')
-rw-r--r-- | octave-secs2d.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-secs2d.install b/octave-secs2d.install index 80e613c15340..1e6b93104c0f 100644 --- a/octave-secs2d.install +++ b/octave-secs2d.install @@ -1,7 +1,11 @@ _pack=secs2d +_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" } |