summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-08-05 15:58:22 +0800
committerBen Hutchings <ben@decadent.org.uk>2018-08-05 15:59:46 +0800
commit1343b682c4c491c66fcc7fb8516a1d303c53291f (patch)
tree3e823a50c057d4604e2ae35d3e0151cd0c0eab82
parent1f105591ea842a75962e42a9921be4f6d6f49ea8 (diff)
update-initramfs: Remove undocumented -y option
This was never documented, doesn't do anything, and doesn't appear to be used by any other package. Remove it completely. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rwxr-xr-xupdate-initramfs10
1 files changed, 1 insertions, 9 deletions
diff --git a/update-initramfs b/update-initramfs
index 4909454..2ef3a45 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -314,11 +314,10 @@ delete()
# Defaults
verbose=0
-yes=0
##
-while getopts "k:cudyvtb:h?" flag; do
+while getopts "k:cudvtb:h?" flag; do
case "${flag}" in
k)
version="${OPTARG}"
@@ -335,9 +334,6 @@ while getopts "k:cudyvtb:h?" flag; do
v)
verbose="1"
;;
- y)
- yes="1"
- ;;
t)
# accepted for compatibility, but ignored
;;
@@ -368,7 +364,6 @@ fi
if [ "${version}" = "all" ] \
|| ( [ "${update_initramfs}" = "all" ] && [ -z "${version}" ] ); then
- : FIXME check for --yes, and if not ask are you sure
get_sorted_versions
if [ -z "${version_list}" ]; then
verbose "Nothing to do, exiting."
@@ -379,9 +374,6 @@ if [ "${version}" = "all" ] \
if [ "${verbose}" = "1" ]; then
OPTS="${OPTS} -v"
fi
- if [ "${yes}" = "1" ]; then
- OPTS="${OPTS} -y"
- fi
for u_version in ${version_list}; do
verbose "Execute: ${0} -${mode} -k \"${u_version}\" ${OPTS}"
"${0}" -${mode} -k "${u_version}" ${OPTS}