Skip to content

Commit 9523809

Browse files
committed
install.sh: untabify
1 parent 1f7de38 commit 9523809

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/etc/install.sh

+20-20
Original file line numberDiff line numberDiff line change
@@ -240,38 +240,38 @@ need_ok "can't run these binaries on this platform"
240240
# FIXME: Hardcoded 'rustlib' ignores CFG_RUSTLIBDIR
241241
if [ -f "${CFG_PREFIX}/lib/rustlib/manifest" ]
242242
then
243-
while read p; do
244-
msg "uninstall ${CFG_PREFIX}/$p"
245-
rm "${CFG_PREFIX}/$p"
246-
need_ok "failed to remove file"
247-
done < "${CFG_PREFIX}/lib/rustlib/manifest"
243+
while read p; do
244+
msg "uninstall ${CFG_PREFIX}/$p"
245+
rm "${CFG_PREFIX}/$p"
246+
need_ok "failed to remove file"
247+
done < "${CFG_PREFIX}/lib/rustlib/manifest"
248248

249249
# Remove 'rustlib' directory
250-
msg "uninstall ${CFG_PREFIX}/lib/rustlib"
251-
rm -r "${CFG_PREFIX}/lib/rustlib"
252-
need_ok "failed to remove rustlib"
250+
msg "uninstall ${CFG_PREFIX}/lib/rustlib"
251+
rm -r "${CFG_PREFIX}/lib/rustlib"
252+
need_ok "failed to remove rustlib"
253253
fi
254254

255255
# If we're only uninstalling then exit
256256
if [ -n "${CFG_UNINSTALL}" ]
257257
then
258-
exit 0
258+
exit 0
259259
fi
260260

261261
# Iterate through the new manifest and install files
262262
while read p; do
263263

264-
umask 022 && mkdir -p "${CFG_PREFIX}/$(dirname $p)"
265-
need_ok "directory creation failed"
266-
267-
msg "${CFG_PREFIX}/$p"
268-
if echo "$p" | grep "/bin/" > /dev/null
269-
then
270-
install -m755 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p"
271-
else
272-
install -m644 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p"
273-
fi
274-
need_ok "file creation failed"
264+
umask 022 && mkdir -p "${CFG_PREFIX}/$(dirname $p)"
265+
need_ok "directory creation failed"
266+
267+
msg "${CFG_PREFIX}/$p"
268+
if echo "$p" | grep "/bin/" > /dev/null
269+
then
270+
install -m755 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p"
271+
else
272+
install -m644 "${CFG_SRC_DIR}/$p" "${CFG_PREFIX}/$p"
273+
fi
274+
need_ok "file creation failed"
275275

276276
# The manifest lists all files to install
277277
done < "${CFG_SRC_DIR}/lib/rustlib/manifest"

0 commit comments

Comments
 (0)