Skip to content
Permalink
Browse files

- wrote out PID file path explicitly since tildas aren't evaluated co…

…rrectly within quotations
  • Loading branch information...
jeffseif committed Feb 2, 2014
1 parent ee427bc commit 0527a9b5aef2f76d1e05dabf5d0a45c780a46efb
Showing with 1 addition and 1 deletion.
  1. +1 −1 check.sh
@@ -1,5 +1,5 @@
#! /bin/bash

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

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

0 comments on commit 0527a9b

Please sign in to comment.
You can’t perform that action at this time.