summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorWalter Lozano <walter.lozano@collabora.com>2021-11-26 11:33:06 -0300
committerWalter Lozano <walter.lozano@collabora.com>2021-11-26 11:33:06 -0300
commite7511e1955c250e3e59b2a32b0c29374816b47dd (patch)
tree786440e74d7f1d9d38b81c80b6c657b0a057b5f3 /cmdline
parent2662f6f255a2f1fee25632dc7666d4153bf5248c (diff)
Use short options for cmp
In order to be consistent with other uses of cmp and to improve compatiblity with other implementations, like busybox one, change long options to short ones. Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-key.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in
index 137546de3..3c83a8b3d 100644
--- a/cmdline/apt-key.in
+++ b/cmdline/apt-key.in
@@ -314,11 +314,11 @@ is_supported_keyring() {
local FILEEXT="${1##*.}"
if [ "$FILEEXT" = 'gpg' ]; then
# 0x98, 0x99 and 0xC6 via octal as hex isn't supported by dashs printf
- if printf '\231' | cmp --silent --bytes=1 - "$1"; then
+ if printf '\231' | cmp -s -n 1 - "$1"; then
true
- elif printf '\230' | cmp --silent --bytes=1 - "$1"; then
+ elif printf '\230' | cmp -s -n 1 - "$1"; then
true
- elif printf '\306' | cmp --silent --bytes=1 - "$1"; then
+ elif printf '\306' | cmp -s -n 1 - "$1"; then
true
else
apt_warn "The key(s) in the keyring $1 are ignored as the file has an unsupported filetype."