Skip to content

Commit

Permalink
added [^~] pattern to exclude backup files from the various subcommands
Browse files Browse the repository at this point in the history
Signed-off-by: Leon Flaks <[email protected]>
  • Loading branch information
cowanml authored and Leon Flaks committed Sep 23, 2013
1 parent cbeb638 commit ea196b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manage-iocs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ list)
;;

status)
ls -1 /etc/init.d/softioc-* | while read ff
ls -1 /etc/init.d/softioc-*[^~] | while read ff
do
printf "$ff\t\t"
IOC="`basename "$ff"`"
Expand Down Expand Up @@ -210,15 +210,15 @@ disable)

stopall)
requireroot
for initfile in /etc/init.d/softioc-*
for initfile in /etc/init.d/softioc-*[^~]
do
$initfile stop
done
;;

startall)
requireroot
for initfile in /etc/init.d/softioc-*
for initfile in /etc/init.d/softioc-*[^~]
do
$initfile start
done
Expand Down

0 comments on commit ea196b4

Please sign in to comment.