Skip to content

Commit 3da262e

Browse files
committed
fix(cc21281): do not delete copied-over directory
Change-Id: I6f1e501798b3f3432fe26d861779cf8636e55b82
1 parent 8903817 commit 3da262e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dumpyara.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,17 @@ EXTENSION=$(echo "${INPUT##*.}" | inline-detox)
123123
UNZIP_DIR=$(basename ${INPUT/.$EXTENSION/})
124124
WORKING=${PWD}/working/${UNZIP_DIR}
125125

126-
if [[ -d "${INPUT}" ]]; then
127-
LOGI 'Directory detected. Copying...'
128-
cp -a "${INPUT}" "${WORKING}"
129-
fi
130-
131126
# Delete previously dumped project
132127
if [[ -d "${WORKING}" ]]; then
133128
rm -rf "${WORKING}"
134129
fi
135130

131+
# Copy over directory to 'WORKING'
132+
if [[ -d "${INPUT}" ]]; then
133+
LOGI 'Directory detected. Copying...'
134+
cp -a "${INPUT}" "${WORKING}"
135+
fi
136+
136137
# clone other repo's
137138
if [[ -d "${PWD}/Firmware_extractor" ]]; then
138139
git -C "${PWD}"/Firmware_extractor pull --recurse-submodules --rebase

0 commit comments

Comments
 (0)