diff options
author | wangjiezhe | 2015-10-28 17:33:17 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-28 17:33:17 +0800 |
commit | 963b92c5e87af0d98df7701c4025fcdd559a0779 (patch) | |
tree | c9b165e579070b9d75b7f4c36c27d3256c394db5 /octave-tsa.install | |
parent | cc6be014c90b6bda044578d5ab6b4423cb7db148 (diff) | |
download | aur-963b92c5e87af0d98df7701c4025fcdd559a0779.tar.gz |
Use _octave_run
Diffstat (limited to 'octave-tsa.install')
-rw-r--r-- | octave-tsa.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-tsa.install b/octave-tsa.install index 3f658487d315..0c9041ec0275 100644 --- a/octave-tsa.install +++ b/octave-tsa.install @@ -1,7 +1,11 @@ _pack=tsa +_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" } |