Ticket #1467: 01_bashism.patch
File 01_bashism.patch, 1.3 KB (added by narcan, 15 years ago) |
---|
-
mc-4.6.2~git20090529
Fix bashism
old new 45 45 #first we check if we have old p7zip archive with prefix ./ in filename 46 46 $P7ZIP l "$1" "$2" | grep -q "0 files" && \ 47 47 EXFNAME=*./"$2" || EXFNAME="$2" 48 $P7ZIP d "$1" "$EXFNAME" 2>&1 | grep -q E_NOTIMPL &> /dev/null&& \49 { echo -e"Function not implemented...\n7z cannot delete from solid archive." >&2 ; exit 1 ; }48 $P7ZIP d "$1" "$EXFNAME" 2>&1 | grep -q E_NOTIMPL > /dev/null 2>&1 && \ 49 { printf "Function not implemented...\n7z cannot delete from solid archive." >&2 ; exit 1 ; } 50 50 } 51 51 52 52 mcu7zip_rmdir () … … 54 54 #first we check if we have old p7zip archive with prefix ./ in filename 55 55 $P7ZIP l "$1" "$2" | grep -q "0 files" && \ 56 56 EXFNAME=*./"$2" || EXFNAME="$2" 57 $P7ZIP d "$1" "$EXFNAME"/ 2>&1 | grep -q E_NOTIMPL &> /dev/null&& \58 { echo -e"Function not implemented...\n7z cannot delete from solid archive." >&2 ; exit 1 ; }57 $P7ZIP d "$1" "$EXFNAME"/ 2>&1 | grep -q E_NOTIMPL > /dev/null 2>&1 && \ 58 { printf "Function not implemented...\n7z cannot delete from solid archive." >&2 ; exit 1 ; } 59 59 } 60 60 61 61 # override any locale for dates