Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit 62ced03

Browse files
committed
switching from stty to exec-out for partition backup (see #25)
1 parent 1d24a4b commit 62ced03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/partitions.lib

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ _fsPartBackup() {
186186
else
187187
pname="${MTD_NAME[${counter}]}"
188188
fi
189-
echo "adb ${ADBOPTS} shell \"su -c 'stty raw; cat ${MTD_DEV[${counter}]}'\" > \"${PARTBACKUPDIR}/${pname}.img\"" >> "${PARTBACKUP_FILE}"
189+
echo "adb ${ADBOPTS} exec-out \"su -c 'cat ${MTD_DEV[${counter}]}'\" > \"${PARTBACKUPDIR}/${pname}.img\"" >> "${PARTBACKUP_FILE}"
190190
counter+=1
191191
done
192192
}

0 commit comments

Comments
 (0)