summaryrefslogtreecommitdiffstats
path: root/helper/string.inc
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-27 00:10:16 +0200
committerSimon Rettberg2014-07-27 00:10:16 +0200
commit62d78729a32dd136feddede21a5dc6e9c3dbe2d7 (patch)
treedccd7c833bb33825c45922397dd84d629d25f05f /helper/string.inc
parent[rfs-s31] fix busybox copying v2 (diff)
downloadtm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.tar.gz
tm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.tar.xz
tm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.zip
helpers/includes now should include an __init function and not just do stuff right away when being sourced
Diffstat (limited to 'helper/string.inc')
-rw-r--r--helper/string.inc6
1 files changed, 0 insertions, 6 deletions
diff --git a/helper/string.inc b/helper/string.inc
index 75baf2ca..077f1719 100644
--- a/helper/string.inc
+++ b/helper/string.inc
@@ -12,12 +12,6 @@ itrim () {
sed -r 's/^\s+//g;s/\s+$//g'
}
-# usage: CANONICALIZED_STRING=$(canonalize <path>)
-# usage with relative path requires you to be in the correct directory.
-canonicalize() {
- cd -P -- "$(dirname -- "$1")" && printf '%s\n' "$(pwd -P)/$(basename -- "$1")"
-}
-
escape_search() {
sed -e 's/[]\/()$*.^|[]/\\&/g'