Any one can help me do this with shell script:
dbsync-installdir
wget
To check check if a directory doesn't exist:
if [ ! -d "$DIRECTORY" ]; then # Here if $DIRECTORY doesn't exist. wget http://url_to_zip_file fi
To extract zip files see man unzip
man unzip
Also you can check if a directory exists:
if [ -d "$DIRECTORY" ]; then # Here if $DIRECTORY exists. fi
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
5 months ago
viewed
49 times
active