From b0e83e2ee3fc328e55119ee7c1f09ad7ed20a635 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 5 Jun 2026 11:06:02 +0100 Subject: Move more host tooling to Nix --- dot_local/bin/executable_record | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_local/bin/executable_record') diff --git a/dot_local/bin/executable_record b/dot_local/bin/executable_record index ff57758..ac88771 100755 --- a/dot_local/bin/executable_record +++ b/dot_local/bin/executable_record @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env dash pid_file="/tmp/recordpid" log_file="/tmp/record.log" @@ -9,7 +9,7 @@ pid_exists() { is_running() { if pid_exists; then - ps "$(cat "$pid_file")" >/dev/null 2>&1 || return 1 + kill -0 "$(cat "$pid_file")" >/dev/null 2>&1 || return 1 else return 1 fi -- cgit v1.3.1