[arch-projects] [devtools] [PATCH 1/5] checkpkg: Proper quoting, use double brackets
Signed-off-by: Lukas Fleischer
We already use `pacman -Sddp` here which should always only return a
single package URL for regular packages. No need to extract the first
field of the last line. Also, specify "--print-format '%l'" explicitly
to make this consistent even if pacman(8)'s default value changes some
day.
Use bash parameter expansion instead of sed(1) to extract the file name
from the URL.
Signed-off-by: Lukas Fleischer
Use parameter expansion instead of invoking external binaries here.
Signed-off-by: Lukas Fleischer
The read shell builtin is the proper way to read single lines. Also,
simplify grep(1) and awk(1) invocations and use a single awk(1)
expression, that supports extracting file names with spaces, instead.
Signed-off-by: Lukas Fleischer
No need to do this after we already wrote the package list to a file.
Signed-off-by: Lukas Fleischer
participants (1)
-
Lukas Fleischer