cleanup scripts

This commit is contained in:
Alexander 2024-02-23 20:27:19 +01:00
parent c4d5e6af5c
commit d8d53a8092
6 changed files with 12 additions and 5 deletions

View file

@ -42,7 +42,8 @@ fi
# enable the selected python package
current_folder="$PWD"
cd "$target_folder" || exit 7
unzip -o "$python_package_file"
echo -e "${YELLOW}INFO: Unzipping the python package ...${NC}"
unzip -o "$python_package_file" >/dev/null 2>&1
# extend the PATH to $project_root/unpacked/squashfs-root/etc/profile
sed -i 's#export PATH="/usr/sbin:/usr/bin:/sbin:/bin"#export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"#' "$ROOTFS_DIR/etc/profile"
cd "$current_folder" || exit 8