mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +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:
committed by
Pavel Emelyanov
parent
92d8c31750
commit
1525aee1e4
@@ -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"
|
||||
|
Reference in New Issue
Block a user