Declare some vars separately so shellckeck will pass

This commit is contained in:
Lillian Violet 2024-03-18 15:00:03 +01:00
parent 4e3f91a122
commit 55488c8338

View file

@ -192,7 +192,8 @@ writeShellApplication
do_unmount()
{
local mount_point=$(findmnt -fno TARGET "''${DEVICE}" || true)
local mount_point
mount_point=$(findmnt -fno TARGET "''${DEVICE}" || true)
if [[ -n $mount_point ]]; then
# Remove symlink to the mount point that we're unmounting
find /run/media -maxdepth 1 -xdev -type l -lname "''${mount_point}" -exec rm -- {} \;
@ -204,7 +205,8 @@ writeShellApplication
do_retrigger()
{
local mount_point=$(findmnt -fno TARGET "''${DEVICE}" || true)
local mount_point
mount_point=$(findmnt -fno TARGET "''${DEVICE}" || true)
[[ -n $mount_point ]] || return 0
# In retrigger mode, we want to wait a bit for steam as the common pattern is starting in parallel with a retrigger