Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
- wrote out PID file path explicitly since tildas aren't evaluated co…
Browse files Browse the repository at this point in the history
…rrectly within quotations
  • Loading branch information
jeffseif committed Feb 2, 2014
1 parent ee427bc commit 0527a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check.sh
@@ -1,5 +1,5 @@
#! /bin/bash #! /bin/bash


PID="$(cat ~/log/pid)" ; PID='/home/ubuntu/log/pid' ;


[ -e "${PID}" ] && echo 'Up' || echo 'Down' ; [ -e "${PID}" ] && echo 'Up' || echo 'Down' ;

0 comments on commit 0527a9b

Please sign in to comment.