From: Ray Strode Date: Tue, 16 Oct 2018 01:02:50 +0000 (-0400) Subject: populate-initrd: drop unused local variable X-Git-Tag: 0.9.4~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff6d59d101768e94a1e2299345d3e129ddb0f08;p=thirdparty%2Fplymouth.git populate-initrd: drop unused local variable the inst_library function declares a variable `_lib` that's completely unused. This commit removes the declaration. --- diff --git a/scripts/plymouth-populate-initrd.in b/scripts/plymouth-populate-initrd.in index c70adbe7..c2f46c0f 100755 --- a/scripts/plymouth-populate-initrd.in +++ b/scripts/plymouth-populate-initrd.in @@ -168,7 +168,7 @@ rev_lib_symlinks() { # It handles making symlinks according to how the original library # is referenced. inst_library() { - local _src="$1" _dest=${2:-$1} _lib _reallib _symlink + local _src="$1" _dest=${2:-$1} _reallib _symlink strstr "$1" "/" || return 1 [[ -e $initdir/$_dest ]] && return 0 if [[ -L $_src ]]; then