From 7f0ff292d24a3ddfaa1014271a017acb6fd25ed4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 18 Jan 2016 16:33:27 +1100 Subject: [PATCH] Fix stray bracket on FreeBSD --- fetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index f70a6034..f54b2de6 100755 --- a/fetch +++ b/fetch @@ -630,7 +630,8 @@ getmemory () { *"BSD") memtotal=$(dmesg | awk '/real mem/ {printf $5}') memused=$(top -d1 | awk '/Mem:/ {print $4}') - memtotal=${memtotal/()MB/} + memtotal=${memtotal/\(/} + memtotal=${memtotal/)MB/} memused=${memused/M/} memory="${memused}MB / ${memtotal}MB" ;;