fetch: Small code quality changes
This commit is contained in:
10
fetch
10
fetch
@@ -1,8 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
name="$(basename $0 .sh)"
|
name="$(basename "$0" .sh)"
|
||||||
if $(which neofetch > /dev/null 2>&1); then
|
if command -v neofetch > /dev/null 2>&1; then
|
||||||
neofetch
|
neofetch
|
||||||
scrot "$HOME/Pictures/Screenshots/neofetch-`date +%s`.png"
|
scrot "$HOME/Pictures/Screenshots/neofetch-$(date +%s).png"
|
||||||
else
|
else
|
||||||
printf "$name: Neofetch is not installed; aborting\n"
|
# shellcheck disable=1117
|
||||||
|
printf "%s: Neofetch is not installed; aborting\n" \
|
||||||
|
"$name"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user