commit | 01098d245c8c3a5564139f097ac7390c318b090d | [log] [tgz] |
---|---|---|
author | Koushik K. Dutta <koushd@gmail.com> | Thu Feb 25 11:07:19 2010 -0800 |
committer | Koushik K. Dutta <koushd@gmail.com> | Thu Feb 25 11:07:19 2010 -0800 |
tree | f1112e6b76d9fbcf5b4128cdcfb962b14580dcbd | |
parent | 36d02893cd2490e565e6880dd6d030912bd93a63 [diff] [blame] |
nandroid backup supports a directory now
diff --git a/nandroid/nandroid-mobile.sh b/nandroid/nandroid-mobile.sh index 738299d..4f42241 100755 --- a/nandroid/nandroid-mobile.sh +++ b/nandroid/nandroid-mobile.sh
@@ -193,7 +193,12 @@ esac TIMESTAMP="`date +%Y%m%d-%H%M`" -DESTDIR="/sdcard/nandroid/$TIMESTAMP" +BASEDIR=/sdcard/nandroid +if [ !-z "$2" ]; then + BASEDIR=$2 +fi + +DESTDIR=$BASEDIR/$TIMESTAMP if [ ! -d $DESTDIR ]; then mkdir -p $DESTDIR if [ ! -d $DESTDIR ]; then