mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
pfetch: fix android issues
This commit is contained in:
5
pfetch
5
pfetch
@@ -1326,6 +1326,11 @@ main() {
|
|||||||
# This gives full control over what it displayed on the screen.
|
# This gives full control over what it displayed on the screen.
|
||||||
exec 6>&1 >/dev/null
|
exec 6>&1 >/dev/null
|
||||||
|
|
||||||
|
# Ensure that the 'TMPDIR' is writable as heredocs use it and
|
||||||
|
# fail without the write permission. This was found to be the
|
||||||
|
# case on Android where the temporary directory requires root.
|
||||||
|
[ -w "${TMPDIR:-/tmp}" ] || export TMPDIR=~
|
||||||
|
|
||||||
# Generic color list.
|
# Generic color list.
|
||||||
# Disable warning about unused variables.
|
# Disable warning about unused variables.
|
||||||
# shellcheck disable=2034
|
# shellcheck disable=2034
|
||||||
|
|||||||
Reference in New Issue
Block a user