2016-06-26 00:26:26 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-08-24 23:53:16 +08:00
|
|
|
# go to script directory
|
|
|
|
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd ${working_dir}
|
|
|
|
|
2017-09-04 20:16:12 +08:00
|
|
|
# remove archives
|
|
|
|
rm *.jar *.tar.gz *.tar 2>/dev/null
|
2017-02-20 08:24:18 +08:00
|
|
|
|
|
|
|
# remove lib directories
|
2017-08-24 23:53:16 +08:00
|
|
|
for folder in * ; do
|
2016-06-26 00:26:26 +08:00
|
|
|
if [ -d "$folder" ]; then
|
|
|
|
rm -rf $folder
|
|
|
|
fi
|
|
|
|
done
|