argedion
The TechnoFrog
I have a bash file I am working on and I am a bit stumped at one part I can't seem to figure out why I am getting this error. What I have is an adb bash to pull from data, system, and sdcard. At the moment I can do the sdcard with out an issue but when I try to do data and system I get the error "./:" is a directory.
here is what I have so far. I have looked for syntax errors but can't see them.
[HIGH]function Save_data
{
#/ save the media to local folder
#/run/media/argedion/750Data/home/phone/adb
echo "Make Local Folder: /run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_Data"/
mkdir "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_Data"/
cd "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_Data"/
echo "Now starting the Pull Process"
`adb pull /data/` "./"
echo "Pull is finished"
}
function Save_system
{
#/ save the media to local folder
echo "Make Local Folder: /run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_System"/
mkdir "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_System"/
cd "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_System"/
echo "Now starting the Pull Process"
`adb pull /system/` "./"
echo "Pull is finished"
}[/HIGH]
The SDCARD one runs with out the error
[HIGH]function Save_Media
{
#/ save the media to local folder
echo "Make Local Folder: /home/argedion/sdcard"/`date +%Y%m%d`"_LTESDCARD"/
mkdir "/home/argedion/sdcard"/`date +%Y%m%d`"_LTESDCARD"/
cd ~/sdcard/`date +%Y%m%d`"_LTESDCARD"/
echo "Now starting the Pull Process"
`adb pull /mnt/sdcard/` "./"
echo "Pull is finished"
}[/HIGH]
the error shows that
line 65 "./:" is a directory. (the line is `adb pull /data/` "./")
Now it is important to know that I can get everything from data before the error or I can get everything from system before the error but if i try to go from data to system then i only get data and then the error
yet the same code works flawlessly with the SDCARD
here is what I have so far. I have looked for syntax errors but can't see them.
[HIGH]function Save_data
{
#/ save the media to local folder
#/run/media/argedion/750Data/home/phone/adb
echo "Make Local Folder: /run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_Data"/
mkdir "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_Data"/
cd "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_Data"/
echo "Now starting the Pull Process"
`adb pull /data/` "./"
echo "Pull is finished"
}
function Save_system
{
#/ save the media to local folder
echo "Make Local Folder: /run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_System"/
mkdir "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_System"/
cd "/run/media/argedion/750Data/home/phone/adb"/`date +%Y%m%d`"_System"/
echo "Now starting the Pull Process"
`adb pull /system/` "./"
echo "Pull is finished"
}[/HIGH]
The SDCARD one runs with out the error
[HIGH]function Save_Media
{
#/ save the media to local folder
echo "Make Local Folder: /home/argedion/sdcard"/`date +%Y%m%d`"_LTESDCARD"/
mkdir "/home/argedion/sdcard"/`date +%Y%m%d`"_LTESDCARD"/
cd ~/sdcard/`date +%Y%m%d`"_LTESDCARD"/
echo "Now starting the Pull Process"
`adb pull /mnt/sdcard/` "./"
echo "Pull is finished"
}[/HIGH]
the error shows that
line 65 "./:" is a directory. (the line is `adb pull /data/` "./")
Now it is important to know that I can get everything from data before the error or I can get everything from system before the error but if i try to go from data to system then i only get data and then the error
yet the same code works flawlessly with the SDCARD