Commits

elifarley committed 2ed5298

job locking: fixed username extraction

  • Participants
  • Parent commits e037779

Comments (0)

Files changed (1)

 backup_single_module() {
   local _module_start_time="$SECONDS"
   local module="$1"; shift
-  local _lock="mbkp-backup.$USER.$module"
+  local _lock="mbkp-backup.${USER:-$(basename $HOME)}.$module"
   local _lock_ok=0
 
   acquire_lock "$_lock" && {