mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
view_app_file(): fix use of stale $F variable
Fix view_app_file() to use $FILE (its private variable) instead of $F (the caller's variable which happened to have the same value). This was a leftover of the app_files_chooser() split in r450. Huge thanks are again due to slakmagik for pointing out this bug. Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
112436fded
commit
dce4a24365
@ -652,9 +652,10 @@ app_files_chooser() {
|
||||
# be listed).
|
||||
|
||||
local D=$1
|
||||
local F
|
||||
local AFS=$TMP/app_files_selection
|
||||
local AFM=$TMP/app_files_menu
|
||||
local TITLE="${D##*/} files" F
|
||||
local TITLE="${D##*/} files"
|
||||
|
||||
while :; do
|
||||
find $D -type f -printf "\"%P\" \"\"\n" | sort > $AFM
|
||||
@ -682,9 +683,9 @@ view_app_file () {
|
||||
cd $DIR
|
||||
case $FILE in
|
||||
slack-desc) sed -n "/^${DIR##*/}: */s///p" slack-desc > $AFSP ;;
|
||||
*tar.gz|*tar.bz2|*tgz) tar tvf $F > $AFSP ;;
|
||||
*gz) zcat $F > $AFSP ;;
|
||||
*bz2) bzcat $F > $AFSP ;;
|
||||
*tar.gz|*tar.bz2|*tgz) tar tvf $FILE > $AFSP ;;
|
||||
*gz) zcat $FILE > $AFSP ;;
|
||||
*bz2) bzcat $FILE > $AFSP ;;
|
||||
*) PLAIN=yes ;;
|
||||
esac
|
||||
if [[ "$PLAIN" == yes ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user