Add string.sh to scripts
This commit is contained in:
parent
efb6ce6f5a
commit
30b038a623
7
scripts/common/string.sh
Normal file
7
scripts/common/string.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[ -n "${_STRING_SH_}" ] && return || readonly _STRING_SH_=1
|
||||||
|
[ -n "${_VERBOSE_}" ] && echo "-- INCLUDE: string.sh"
|
||||||
|
|
||||||
|
_startswith() { [ "$1" != "${1#$2}" ]; }
|
||||||
|
_endswith() { [ "$1" != "${1%$2}" ]; }
|
Loading…
Reference in New Issue
Block a user