diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network b/src/network index 70f639f..5bb4182 100644 --- a/src/network +++ b/src/network @@ -37,9 +37,7 @@ load_profile() # take all registered profiles down all_down() { - find "$STATE_DIR/profiles/" -maxdepth 1 -type f -printf '%f\n' \ - | while read prof; do - # the pipe to while read... creates a subshell + for prof in $(find "$STATE_DIR/profiles/" -maxdepth 1 -type f -printf '%f\n'); do profile_down "$prof" done } |