unzip /test_data/sample.ZIP -d /data/Traget/
if [ "$?" = 1 ]; then
echo " Unzipping of files failed"
exit 1
fi
The script is archiving data and trying to write at the location mentioned but the directory /data/Traget/ does not have access to write and hence the script is failing.... But its not throwing status 1. Could someone please help
Thank You