Fix SC2005

https://github.com/koalaman/shellcheck/wiki/SC2005
This commit is contained in:
Camille TJHOA 2021-10-22 12:15:15 +00:00
parent 92aaaa366b
commit 5273756638

View file

@ -129,7 +129,7 @@ put_cache_val() {
val="${@:2}"
tmpdir="$(get_tmp_dir)"
[ ! -d "$tmpdir" ] && mkdir -p "$tmpdir" && chmod 0700 "$tmpdir"
echo "$(get_time)" >"$tmpdir/$key"
get_time >"$tmpdir/$key"
echo -n "$val" >>"$tmpdir/$key"
echo -n "$val"
}