From 1874570e59e68910016a73641fdb99bfcd914984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Garc=C3=ADa-Dom=C3=ADnguez?= Date: Tue, 21 Jun 2016 14:14:23 +0100 Subject: Replace can_run definition --- prepare-videochat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prepare-videochat.sh') diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 0ca87d8..1a4475e 100755 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -173,7 +173,7 @@ confirm() { can_run() { # It's either the path to a file, or the name of an executable in $PATH - (test -x "$1" || which "$1") &>/dev/null + which "$1" >/dev/null 2>/dev/null } start_adb() { -- cgit v1.2.3 From 2b45f14015a41c095791749c08f7cb5feddba47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Garc=C3=ADa-Dom=C3=ADnguez?= Date: Tue, 21 Jun 2016 14:50:53 +0100 Subject: Avoid '&>' (deprecated according to Bash Hackers Wiki, refs #31) --- prepare-videochat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prepare-videochat.sh') diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 1a4475e..ec3c24e 100755 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -145,7 +145,7 @@ AUDIO_CODEC=opus has_kernel_module() { # Loads module if it is not yet loaded MODULE="$1" - if lsmod | grep "$MODULE" &> /dev/null ; then + if lsmod | grep "$MODULE" >/dev/null 2>/dev/null; then # echo "$MODULE is loaded! Do nothnig." : else -- cgit v1.2.3