diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2020-03-12 00:42:45 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2020-03-12 00:42:45 +0200 |
| commit | 7503fcc37bd78f1a5080ea2b46f79239d8bd69fb (patch) | |
| tree | e24233c8cd9e7feb684e2e365202bc898fd9de96 | |
| parent | 675814f33e5581265eb5931dd30ae984c587c734 (diff) | |
| download | pfetch-7503fcc37bd78f1a5080ea2b46f79239d8bd69fb.tar.gz | |
pfetch: Add --version. Closes #47
| -rwxr-xr-x | pfetch | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1455,6 +1455,11 @@ get_ascii() { } main() { + [ "$1" = --version ] && { + printf 'pfetch 0.7.0\n' + exit + } + # Hide 'stderr' unless the first argument is '-v'. This saves # polluting the script with '2>/dev/null'. [ "$1" = -v ] || exec 2>/dev/null |
