about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-06-13 11:27:06 +0300
committerNakidai <nakidai@disroot.org>2025-06-13 11:27:06 +0300
commit9ce5093bec65e8b63e4100a78e2055fcdde6d290 (patch)
treea83fb40675e15db5f0248436cb36c833ac6b34c0
parent424f97ea9402aa7e98b7851e432b6ae48e79d729 (diff)
downloadfp-9ce5093bec65e8b63e4100a78e2055fcdde6d290.tar.gz
fp-9ce5093bec65e8b63e4100a78e2055fcdde6d290.zip
Fix fprun HEAD master
It wasn't working when I was trying to do `st fprun'. Now it works :/
-rwxr-xr-xfprun4
1 files changed, 3 insertions, 1 deletions
diff --git a/fprun b/fprun
index 9873405..169a545 100755
--- a/fprun
+++ b/fprun
@@ -9,4 +9,6 @@
 
 paths=`printf '%s' "$PATH" | tr ':' ' '` 
 prog="`fp 10 $paths`"
-nohup "$prog" > /dev/null 2>&1 &
+[ -z "$prog" ] && exit
+nohup sh -c "'$prog' &" > /dev/null 2>&1 &
+while jobs | grep Running > /dev/null; do true; done