Skip to content

Commit

Permalink
terminal-run: prevent errors on future script updates
Browse files Browse the repository at this point in the history
Curly brackets forces bash to read the whole file
  • Loading branch information
Botspot committed Oct 23, 2023
1 parent c9ffc77 commit f1b643b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/terminal-run
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

{
#$1 is the command to be run.
#$2 is the title.
commands="$1"
Expand Down Expand Up @@ -126,4 +126,5 @@ if [ ! -z "$temp_pid_file" ];then

fi

true
exit 0
}

1 comment on commit f1b643b

@theofficialgman
Copy link
Collaborator

@theofficialgman theofficialgman commented on f1b643b Oct 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change actually caused an erroneous popup one time after all updates complete by the manage script. it can be closed without any issue though and I see no way around it.

this is how this script should have been from the start though so I think it is ok.

Please sign in to comment.