[CRIU] [PATCH 1/2] scripts: single style for command substitution in systemd-autofs-restart.sh

Eugene Kolomeetz klm at virtuozzo.com
Wed May 25 08:06:18 PDT 2016


Let's use $(...) form, it is more readable, and used in other places.

Signed-off-by: Eugene Kolomeetz <klm at virtuozzo.com>
---
 scripts/systemd-autofs-restart.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh
index 58c0bf4..959886c 100755
--- a/scripts/systemd-autofs-restart.sh
+++ b/scripts/systemd-autofs-restart.sh
@@ -93,7 +93,7 @@ function save_mountpoint {
 	# Nothing to do, if no file system is on top of autofs
 	check_fs_type $mountpoint "autofs" && return
 
-	bindmount=`$JOIN_CT mktemp -d`
+	bindmount=$($JOIN_CT mktemp -d)
 	if [ -z "$bindmount" ]; then
 		echo "Failed to create temporary directory"
 		return
@@ -121,7 +121,7 @@ function restore_mountpoint {
 
 function restart_service {
 	local service=$1
-	local mountpoint=`$JOIN_CT systemctl show $service -p Where | sed 's/.*=//g'`
+	local mountpoint=$($JOIN_CT systemctl show $service -p Where | sed 's/.*=//g')
 
 	if [ -z "$mountpoint" ]; then
 		echo "Failed to discover $service mountpoint"
-- 
1.7.6



More information about the CRIU mailing list