diff options
author | wangjiezhe | 2015-10-28 12:15:41 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-28 12:15:41 +0800 |
commit | 7990395809e58294bf635dc1c3fb6316a6f9a64d (patch) | |
tree | 3a981c14445b1ffe336618f7346190d3dc2d1c2d /octave-stk.install | |
parent | dab84d9d3b6a13dd874f3ed02907636da2a1d98d (diff) | |
download | aur-7990395809e58294bf635dc1c3fb6316a6f9a64d.tar.gz |
Use _octave_run
Diffstat (limited to 'octave-stk.install')
-rw-r--r-- | octave-stk.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-stk.install b/octave-stk.install index 18323e5368dc..7d868eab342a 100644 --- a/octave-stk.install +++ b/octave-stk.install @@ -1,7 +1,11 @@ _pack=stk +_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" } |