Enbo Wang | 6ab8b62 | 2019-04-23 13:42:21 +0000 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | readonly old_pwd=$PWD | ||||
4 | cd swm/sw_server_simulator | ||||
5 | |||||
6 | for i in `ls -1`; do | ||||
Enbo Wang | 818f76a | 2020-03-04 00:42:31 +0800 | [diff] [blame] | 7 | if [ -d $i ]; then |
8 | cd $i | ||||
9 | echo $i | ||||
10 | zip -r ${i}.zip * | ||||
11 | mv ${i}.zip .. | ||||
12 | cd $OLDPWD | ||||
13 | fi | ||||
Enbo Wang | 6ab8b62 | 2019-04-23 13:42:21 +0000 | [diff] [blame] | 14 | done |
15 | |||||
16 | cd $old_pwd | ||||
17 |