2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

scripts: single style for command substitution in systemd-autofs-restart.sh

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

Signed-off-by: Eugene Kolomeetz <klm@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Eugene Kolomeetz
2016-05-25 18:06:18 +03:00
committed by Pavel Emelyanov
parent 92d8c31750
commit 1525aee1e4

View File

@@ -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"