aboutsummaryrefslogtreecommitdiff
path: root/functions.sh
diff options
context:
space:
mode:
authorGavin Howard <yzena.tech@gmail.com>2019-04-01 15:00:39 -0600
committerGavin Howard <yzena.tech@gmail.com>2019-04-01 15:00:39 -0600
commit013a230c0fedf2a96220e3e9052602fd8a20c336 (patch)
tree1449d2a9d1497be6763893df256128d2fde7c3a1 /functions.sh
parent918cfa3e1e17be35ef84a6ecc320f256e919e534 (diff)
downloadbc-013a230c0fedf2a96220e3e9052602fd8a20c336.tar.gz
Use the encoding in locales as well
I was stupid to think that I could avoid it.
Diffstat (limited to 'functions.sh')
-rwxr-xr-xfunctions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.sh b/functions.sh
index 31f82437..aff2c4b5 100755
--- a/functions.sh
+++ b/functions.sh
@@ -21,7 +21,7 @@ readlink() {
L=$(ls -dl "$exe")
- printf ${L#*-> }
+ printf "${L#*-> }"
}
removeext() {
@@ -29,7 +29,7 @@ removeext() {
local name="$1"
shift
- printf '%s' "$name" | cut -f 1 -d '.'
+ printf "${name%.*}"
}
die() {