Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
9be91cd8
Commit
9be91cd8
authored
Dec 12, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrot: Quote unquoted var
parent
c92fb13c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
neofetch
neofetch
+11
-10
No files found.
neofetch
View file @
9be91cd8
...
...
@@ -88,6 +88,7 @@ get_distro() {
else
# Source the os-release file
for
file
in
/etc/os-release /usr/lib/os-release /etc/
*
release /usr/lib/
*
release
;
do
# shellcheck disable=1090
source
"
$file
"
&&
break
done
...
...
@@ -2392,22 +2393,22 @@ scrot_program() {
# falling back to OS specific screenshot tools.
if [[ -n "
$DISPLAY
" ]]; then
if [[ "
$scrot_cmd
" != "
auto
" ]] && type -p "
$scrot_cmd
" >/dev/null; then
scrot_program=
"
$scrot_cmd
"
scrot_program=
("
$scrot_cmd
")
elif type -p scrot >/dev/null; then
scrot_program=
"
scrot
"
scrot_program=
(scrot)
elif type -p maim >/dev/null; then
scrot_program=
"
maim
"
scrot_program=
(maim)
elif type -p import >/dev/null; then
scrot_program=
"
import
-window root
"
scrot_program=
(import -window root)
elif type -p imlib2_grab >/dev/null; then
scrot_program=
"
imlib2_grab
"
scrot_program=
(imlib2_grab)
elif type -p gnome-screenshot >/dev/null; then
scrot_program=
"
gnome
-screenshot -f
"
scrot_program=
(gnome-screenshot -f)
else
err "
Scrot
:
No screen capture tool found.
"
...
...
@@ -2415,15 +2416,15 @@ scrot_program() {
fi
else
case "
$os
" in
"
Mac
OS X
") scrot_program=
"
screencapture
-S
"
;;
"
Haiku
") scrot_program=
"
screenshot
-s
"
;;
"
Mac
OS X
") scrot_program=
(screencapture -S)
;;
"
Haiku
") scrot_program=
(screenshot -s)
;;
esac
fi
# Take the scrot.
$scrot_program
"
$1
"
"
${
scrot_program
[@]
}
"
"
$1
"
err "
Scrot
:
Screen captured using
$
scrot_program
"
err "
Scrot
:
Screen captured using
$
{
scrot_program
[0]
}
"
}
# TEXT FORMATTING
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment