Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit b294d65

Browse files
committed
Merge branch '4596_fix_command_v'
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2 parents 5e2a484 + f53e9b1 commit b294d65

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/vfs/extfs/helpers/iso9660.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#*** file scope functions **********************************************
3434

35-
XORRISO=$(command -v xorriso >/dev/null 2>&1)
35+
XORRISO=$(command -v xorriso 2>/dev/null)
3636

3737
# This snippet is used to undo xorriso's Text_shellsafe(). Pseudocode for the
3838
# function:
@@ -143,7 +143,7 @@ xorriso_rm() {
143143

144144
# tested to comply with isoinfo 2.0's output
145145
test_iso () {
146-
ISOINFO=$(command -v isoinfo >/dev/null 2>&1)
146+
ISOINFO=$(command -v isoinfo 2>/dev/null)
147147
if test -z "$ISOINFO"; then
148148
echo "isoinfo not found" >&2
149149
return 1

src/vfs/extfs/helpers/u7z

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1919

20-
P7ZIP=`command -v 7z >/dev/null 2>&1` \
21-
|| P7ZIP=`command -v 7zz >/dev/null 2>&1` \
22-
|| P7ZIP=`command -v 7za >/dev/null 2>&1` \
23-
|| P7ZIP=`command -v 7zr >/dev/null 2>&1` \
20+
P7ZIP=`command -v 7z 2>/dev/null` \
21+
|| P7ZIP=`command -v 7zz 2>/dev/null` \
22+
|| P7ZIP=`command -v 7za 2>/dev/null` \
23+
|| P7ZIP=`command -v 7zr 2>/dev/null` \
2424
|| P7ZIP=""
2525

2626
# Let the test framework hook in:

src/vfs/extfs/helpers/urar.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
RAR=rar
1717

1818
# Prefer unrar (freeware).
19-
UNRAR=`command -v unrar >/dev/null 2>&1`
19+
UNRAR=`command -v unrar 2>/dev/null`
2020

2121
[ -z $UNRAR ] && UNRAR=$RAR
2222
[ ! -x $UNRAR -a -x $RAR ] && UNRAR=$RAR

src/vfs/extfs/helpers/uwim.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# apt install wimtools
1212

1313
command -v wimlib-imagex >/dev/null 2>&1 || exit 1
14-
WIM=`command -v wimlib-imagex >/dev/null 2>&1`
14+
WIM=`command -v wimlib-imagex 2>/dev/null`
1515
AWK=@AWK@
1616

1717
[ -n "$2" ] || exit 1

0 commit comments

Comments
 (0)