summaryrefslogtreecommitdiff
path: root/backend/modules/common
diff options
context:
space:
mode:
Diffstat (limited to 'backend/modules/common')
-rw-r--r--backend/modules/common13
1 files changed, 13 insertions, 0 deletions
diff --git a/backend/modules/common b/backend/modules/common
new file mode 100644
index 0000000..5c763f3
--- /dev/null
+++ b/backend/modules/common
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Synopsis: dereferce_links_in_list
+#
+# This function reads a list from STDIN, dereferences the links and prints it to STDOUT
+function dereferce_links_in_list()
+{
+ for lnk in $(cat)
+ do
+ readlink -m $lnk
+ done
+}
+