mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +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).
|
# be listed).
|
||||||
|
|
||||||
local D=$1
|
local D=$1
|
||||||
|
local F
|
||||||
local AFS=$TMP/app_files_selection
|
local AFS=$TMP/app_files_selection
|
||||||
local AFM=$TMP/app_files_menu
|
local AFM=$TMP/app_files_menu
|
||||||
local TITLE="${D##*/} files" F
|
local TITLE="${D##*/} files"
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
find $D -type f -printf "\"%P\" \"\"\n" | sort > $AFM
|
find $D -type f -printf "\"%P\" \"\"\n" | sort > $AFM
|
||||||
@ -682,9 +683,9 @@ view_app_file () {
|
|||||||
cd $DIR
|
cd $DIR
|
||||||
case $FILE in
|
case $FILE in
|
||||||
slack-desc) sed -n "/^${DIR##*/}: */s///p" slack-desc > $AFSP ;;
|
slack-desc) sed -n "/^${DIR##*/}: */s///p" slack-desc > $AFSP ;;
|
||||||
*tar.gz|*tar.bz2|*tgz) tar tvf $F > $AFSP ;;
|
*tar.gz|*tar.bz2|*tgz) tar tvf $FILE > $AFSP ;;
|
||||||
*gz) zcat $F > $AFSP ;;
|
*gz) zcat $FILE > $AFSP ;;
|
||||||
*bz2) bzcat $F > $AFSP ;;
|
*bz2) bzcat $FILE > $AFSP ;;
|
||||||
*) PLAIN=yes ;;
|
*) PLAIN=yes ;;
|
||||||
esac
|
esac
|
||||||
if [[ "$PLAIN" == yes ]]; then
|
if [[ "$PLAIN" == yes ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user