fuzz one optimized and fuzz2 compeleted

This commit is contained in:
victor 2020-02-10 16:08:25 +03:30
parent 4cd9d452c6
commit 51386ca89a
1 changed files with 26 additions and 4 deletions

View File

@ -1,19 +1,32 @@
#!/usr/bin/env bash #!/usr/bin/env bash
function main(){ function main(){
mkdir -p $HOME/.photoshopCCV19
mkdir -p $HOME/.cache/photoshopCCV19 SCR_PATH="$HOME/.photoshopCCV19"
CACHE_PATH="$HOME/.cache/photoshopCCV19"
mkdir -p $SCR_PATH
mkdir -p $CACHE_PATH
setup_log "================| script executed |================" setup_log "================| script executed |================"
check_arg $1 check_arg $1
is64 is64
#make sure aria2c and wine package is already installed
package_installed aria2c package_installed aria2c
package_installed wine package_installed wine
#delete wine3.4 dir if exist then create it
WINE_PATH="$SCR_PATH/wine-3.4"
rmdir_if_exist $WINE_PATH
RESOURCES_PATH="$SCR_PATH/resources"
echo "$RESOURCES_PATH"
} }
function setup_log(){ function setup_log(){
echo -e "$(date) : $@" >> $HOME/.photoshopCCV19/setuplog.log echo -e "$(date) : $@" >> $SCR_PATH/setuplog.log
} }
function show_message(){ function show_message(){
@ -32,6 +45,15 @@ function warning(){
setup_log "$@" setup_log "$@"
} }
function rmdir_if_exist(){
if [ -d "$1" ];then
rm -rf $1
show_message "\033[0;36m$1\e[0m directory exists deleting it..."
fi
mkdir $1
show_message "create\033[0;36m $1\e[0m directory..."
}
function check_arg(){ function check_arg(){
if [ $1 != 0 ] if [ $1 != 0 ]
then then