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}"