summarylogtreecommitdiffstats
path: root/qpi-env-exec
diff options
context:
space:
mode:
authorDonald Carr2017-09-09 10:37:02 -0700
committerDonald Carr2017-09-09 10:42:10 -0700
commit78e07bc01549cd7d831797965aae06409b642345 (patch)
treef2e33f15a004a57d3ca521ffa4a180e84ed2e532 /qpi-env-exec
parent894650fd0943aeb965c786653c1e431be0bc77bc (diff)
downloadaur-78e07bc01549cd7d831797965aae06409b642345.tar.gz
Add convenience script to launch applications in the profile.d qpi env
Diffstat (limited to 'qpi-env-exec')
-rwxr-xr-xqpi-env-exec15
1 files changed, 15 insertions, 0 deletions
diff --git a/qpi-env-exec b/qpi-env-exec
new file mode 100755
index 00000000000..86816f52e45
--- /dev/null
+++ b/qpi-env-exec
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+executed_file=$(readlink -f ${BASH_SOURCE[0]})
+script_dir=$(dirname ${executed_file})
+script_name=$(basename ${executed_file})
+
+for i in $(ls /etc/profile.d/qpi*); do
+ echo "sourcing: $i"
+ source $i
+done
+
+echo "Environment"
+env
+echo "Running: $@"
+$@