summaryrefslogtreecommitdiffstats
path: root/protect_special_libs
diff options
context:
space:
mode:
authorPavel Vinogradov2019-02-23 19:25:18 -0500
committerPavel Vinogradov2019-02-23 19:25:18 -0500
commit430ca772ba3c569b68cd858e03e17832b507a8a2 (patch)
tree8c6898a9a5b6fa919b28082dbc399e698bb43526 /protect_special_libs
parentd28422dbe1009e2e0779de6fcb5654ca1916120a (diff)
protect_special_libs: backup directory should be autodeleted and not
a possible tmpfs mountpoint
Diffstat (limited to 'protect_special_libs')
-rw-r--r--protect_special_libs4
1 files changed, 2 insertions, 2 deletions
diff --git a/protect_special_libs b/protect_special_libs
index 371b376e79..f4532602cb 100644
--- a/protect_special_libs
+++ b/protect_special_libs
@@ -4,12 +4,12 @@
# candidate spells for this would be glibc, ncurses, readline
lock_resources "libgrimoire" "install" &&
-PROTECT=$BUILD_DIRECTORY/$SPELL.oldlibs &&
+PROTECT="${SOURCE_DIRECTORY}/${SPELL}.oldlibs" &&
if [[ -z $INSTALL_ROOT ]]; then
protect_special_libs() {
message "${MESSAGE_COLOR}Protecting special libraries${DEFAULT_COLOR}" &&
- mk_source_dir $PROTECT &&
+ mkdir -p "${PROTECT}" &&
local each &&
for each in /lib{,64,32}/*; do