mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
pfetch: Added PF_SOURCE. Closes #34
This commit is contained in:
5
pfetch
5
pfetch
@@ -1296,6 +1296,11 @@ main() {
|
||||
# This gives full control over what it displayed on the screen.
|
||||
exec 6>&1 >/dev/null
|
||||
|
||||
# Allow the user to execute their own script and modify or
|
||||
# extend pfetch's behavior.
|
||||
# shellcheck source=/dev/null
|
||||
. "${PF_SOURCE:-/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.
|
||||
|
||||
Reference in New Issue
Block a user