summarylogtreecommitdiffstats
path: root/octave-stk.install
diff options
context:
space:
mode:
authorwangjiezhe2015-10-28 12:15:41 +0800
committerwangjiezhe2015-10-28 12:15:41 +0800
commit7990395809e58294bf635dc1c3fb6316a6f9a64d (patch)
tree3a981c14445b1ffe336618f7346190d3dc2d1c2d /octave-stk.install
parentdab84d9d3b6a13dd874f3ed02907636da2a1d98d (diff)
downloadaur-7990395809e58294bf635dc1c3fb6316a6f9a64d.tar.gz
Use _octave_run
Diffstat (limited to 'octave-stk.install')
-rw-r--r--octave-stk.install8
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"
}