summarylogtreecommitdiffstats
path: root/octave-image.install
diff options
context:
space:
mode:
authorwangjiezhe2016-10-05 21:17:03 +0800
committerwangjiezhe2016-10-05 21:17:03 +0800
commite9e2370bb0c21e2ff32ec3960fe7787d25a41840 (patch)
tree57f275a224df572a016a27891f1b0c7b6f705f1f /octave-image.install
parenta71bc339e91d66d47029a95993165c40a4a6e066 (diff)
downloadaur-e9e2370bb0c21e2ff32ec3960fe7787d25a41840.tar.gz
image 2.6.0
Diffstat (limited to 'octave-image.install')
-rw-r--r--octave-image.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-image.install b/octave-image.install
index 7c9ea5667f44..f86e8d16cb58 100644
--- a/octave-image.install
+++ b/octave-image.install
@@ -1,7 +1,11 @@
_pack=image
+_octave_run() {
+ octave --no-history --no-init-file --no-window-system -q -f --eval "$*"
+}
+
post_install() {
- octave -q -f --eval "pkg rebuild -global $_pack"
+ _octave_run "pkg rebuild -global $_pack"
}
post_upgrade() {
@@ -9,5 +13,5 @@ post_upgrade() {
}
post_remove() {
- octave -q -f --eval "pkg rebuild -global"
+ _octave_run "pkg rebuild -global"
}