This repository was archived by the owner on May 13, 2021. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
POW_HOST_ROOT=${POW_HOST_ROOT:- $HOME / Library/ Application Support/ Pow/ Hosts}
6
6
7
7
for_each () {
8
- while read line; do
8
+ while read -r line; do
9
9
[[ -n " $line " ]] || continue
10
10
" $@ " $line
11
11
done
@@ -23,7 +23,7 @@ rm_proxy_conf() {
23
23
24
24
stop_port_forwarding () {
25
25
local port=$1
26
- pgrep boot2docker | while read pid; do
26
+ pgrep boot2docker | while read -r pid; do
27
27
local forwarder=" boot2docker ssh -N -L $port :0.0.0.0:$port "
28
28
if [[ $( ps -o command= $pid ) = " $forwarder " ]]; then
29
29
# Kill ssh spawned by boot2docker ssh.
@@ -68,7 +68,7 @@ filter_by_name() {
68
68
cat
69
69
return
70
70
fi
71
- while read line; do
71
+ while read -r line; do
72
72
local name=$( cut -d' ' -f2 <<< $line )
73
73
if grep -q " $name " <<< " $target_names " ; then
74
74
echo $line
Original file line number Diff line number Diff line change 5
5
POW_HOST_ROOT=${POW_HOST_ROOT:- $HOME / Library/ Application Support/ Pow/ Hosts}
6
6
7
7
for_each () {
8
- while read line; do
8
+ while read -r line; do
9
9
[[ -n " $line " ]] || continue
10
10
" $@ " $line
11
11
done
@@ -23,7 +23,7 @@ start_port_forwarding() {
23
23
local port=$1
24
24
local forwarder=" boot2docker ssh -N -L $port :0.0.0.0:$port "
25
25
local forwarder_exists=
26
- pgrep boot2docker | while read pid; do
26
+ pgrep boot2docker | while read -r pid; do
27
27
if [[ $( ps -o command= $pid ) = " $forwarder " ]]; then
28
28
echo " Port $port is already forwarded"
29
29
return 99
@@ -53,7 +53,7 @@ filter_by_name() {
53
53
cat
54
54
return
55
55
fi
56
- while read line; do
56
+ while read -r line; do
57
57
local name=$( cut -d' ' -f2 <<< $line )
58
58
if grep -q " $name " <<< " $target_names " ; then
59
59
echo $line
You can’t perform that action at this time.
0 commit comments