aboutsummaryrefslogtreecommitdiff
path: root/gitstatus/gitstatus.plugin.sh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-09 14:26:38 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-09 14:26:38 +0300
commit00cf3b1167dc8e4e38cbb72883d24e477a109a2f (patch)
tree344ccdb790eb26ad3904a8806555c4acf325678b /gitstatus/gitstatus.plugin.sh
parentd75147503ef3163e32e3279a39bd07bc9942a9de (diff)
parenta3c1b7164be115f097682088c6feac283c40a1f2 (diff)
Merge commit 'a3c1b7164be115f097682088c6feac283c40a1f2'
Diffstat (limited to 'gitstatus/gitstatus.plugin.sh')
-rw-r--r--gitstatus/gitstatus.plugin.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/gitstatus/gitstatus.plugin.sh b/gitstatus/gitstatus.plugin.sh
index 685e81a2..1ecccb85 100644
--- a/gitstatus/gitstatus.plugin.sh
+++ b/gitstatus/gitstatus.plugin.sh
@@ -76,7 +76,7 @@ function gitstatus_start() {
[[ -n "$log_level" || "${GITSTATUS_ENABLE_LOGGING:-0}" != 1 ]] || log_level=INFO
local uname_sm
- uname_sm="$(uname -sm)" || return
+ uname_sm="$(command uname -sm)" || return
uname_sm="${uname_sm,,}"
local uname_s="${uname_sm% *}"
local uname_m="${uname_sm#* }"
@@ -86,8 +86,8 @@ function gitstatus_start() {
else
local cpus
if ! command -v sysctl &>/dev/null || [[ "$uname_s" == linux ]] ||
- ! cpus="$(sysctl -n hw.ncpu)"; then
- if ! command -v getconf &>/dev/null || ! cpus="$(getconf _NPROCESSORS_ONLN)"; then
+ ! cpus="$(command sysctl -n hw.ncpu)"; then
+ if ! command -v getconf &>/dev/null || ! cpus="$(command getconf _NPROCESSORS_ONLN)"; then
cpus=8
fi
fi
@@ -104,7 +104,7 @@ function gitstatus_start() {
--dirty-max-index-size="$max_dirty"
$extra_flags)
- tmpdir="$(mktemp -d "${TMPDIR:-/tmp}"/gitstatus.bash.$$.XXXXXXXXXX)" || return
+ tmpdir="$(command mktemp -d "${TMPDIR:-/tmp}"/gitstatus.bash.$$.XXXXXXXXXX)" || return
if [[ -n "$log_level" ]]; then
GITSTATUS_DAEMON_LOG="$tmpdir"/daemon.log
@@ -115,7 +115,7 @@ function gitstatus_start() {
req_fifo="$tmpdir"/req.fifo
resp_fifo="$tmpdir"/resp.fifo
- mkfifo -- "$req_fifo" "$resp_fifo" || return
+ command mkfifo -- "$req_fifo" "$resp_fifo" || return
{
(