summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xilib.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xilib.sh b/src/xilib.sh
index 56e2592..736ddb6 100644
--- a/src/xilib.sh
+++ b/src/xilib.sh
@@ -20,4 +20,15 @@ checkroot () {
}
}
+# reverse the order of lines
+#
+reverse_lines () {
+ local result=
+ while IFS= read -r line; do
+ result="$line
+ $result"
+ done
+ echo "$result"
+}
+