Skip to content

Commit

Permalink
Fix issue #11
Browse files Browse the repository at this point in the history
- pkill ssh-agent/gpg-agent can return error in case agents are not running.
- added code that handles that case
  • Loading branch information
gnzsnz committed May 11, 2024
1 parent 4b28926 commit 2534d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image-files/tws-scripts/run_tws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ disable_agents() {
xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false
# kill ssh-agent and gpg-agent
pkill -x ssh-agent
pkill -x gpg-agent
pkill -x ssh-agent || echo ".> ssh-agent was not running."
pkill -x gpg-agent || echo ".> gpg-agent was not running."
touch /config/.config/disable_agents
else
echo ".> Found '/config/.config/disable_agents' agents already disabled"
Expand Down

0 comments on commit 2534d85

Please sign in to comment.