From 7d1926f778e91f5325e6f0d76e866c74e790ceb8 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Thu, 2 Jun 2022 18:09:24 +0200 Subject: [PATCH] Fix hardcoded filename --- scripts/dnd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dnd.sh b/scripts/dnd.sh index cc9094c..d143063 100755 --- a/scripts/dnd.sh +++ b/scripts/dnd.sh @@ -16,5 +16,5 @@ fi # Update status in file new_state=$( bc "(${saved_state} + 1) % 2" ) -sed -i "s/saved_state=[0|1]/saved_state=${new_state}/" ~/.scripts/dnd.sh +sed -i "s/saved_state=[0|1]/saved_state=${new_state}/" "${0}"