Skip to content

Commit

Permalink
fix how we call the InstallPackages script
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidHal committed Jul 27, 2022
1 parent 1c7bb08 commit 803fe65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/InstallScripts/InstallPrawnOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,11 @@ install_packages() {
#handle when we use this for expansion
if [ -z "$TARGET_MOUNT" ]
then
CHROOT_PREFIX=""
INSTALL_PACKAGES_SCRIPT="/${SCRIPTS}/InstallPackages.sh"

else
CHROOT_PREFIX="chroot_wrapper ${TARGET_MOUNT}"
INSTALL_PACKAGES_SCRIPT="${CHROOT_PREFIX} .${SCRIPTS}/InstallPackages.sh"
fi

while true; do
Expand All @@ -392,7 +393,7 @@ install_packages() {
case $ins in
[Yy]* )
echo "Installing Packages"
$CHROOT_PREFIX .$SCRIPTS/InstallPackages.sh
$INSTALL_PACKAGES_SCRIPT
desktop=true
break
;;
Expand Down

0 comments on commit 803fe65

Please sign in to comment.