Skip to content

Commit

Permalink
fix trigger script for invoking mr.freeze to not rely on the gnu ve…
Browse files Browse the repository at this point in the history
…rsion of `readlink`
  • Loading branch information
witsch committed Jan 19, 2010
1 parent 8b86295 commit e3385a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Python: set mr_freeze breakpoint.tmCommand
Expand Up @@ -27,7 +27,7 @@ if [[ "$url" =~ ^http://[^:]*:([0-9]*)/ ]]; then
pid=$( lsof -nF -itcp:$port | grep ^p | tr -d p | sort -nr | head -1 )
lock=$( lsof -F -p $pid | grep '^n.*/instance\.lock$' )
freeze=$( echo $lock | cut -c2- | sed 's/lock$/freeze/' )
path=$( readlink -f "$path" )
path=$( readlink "$p" || echo "$p" )
echo -e "freeze $path $line\npony" > "$freeze"
echo "set up freeze file at $freeze:"
cat "$freeze"
Expand Down

0 comments on commit e3385a3

Please sign in to comment.