diff --git a/README.md b/README.md index ee832f1..eb5927b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ to a wide range of packages from the Arch Linux repositories. The main advantages on using JuNest are: - Install packages without root privileges. -- Partial isolated environment which you can install packages without affecting a production system. +- Partial isolated environment in which you can install packages without affecting a production system. - Access to a wide range of packages, in particular on GNU/Linux distros that may contain limited repositories (such as CentOS and RedHat). - Available for `x86_64` and `arm` architectures but you can build your own image from scratch too! - Run on a different architecture from the host OS via QEMU @@ -51,7 +51,7 @@ JuNest follows the [Arch Linux philosophy](https://wiki.archlinux.org/index.php/ How different is JuNest from Docker and Vagrant? ------------------------------------------------ Although JuNest sounds similar to a virtualisation/Linux container -like system, -JuNest differentiate a lot between Docker and Vagrant. +JuNest is quite different from solutions like Docker or Vagrant. In fact, the purpose of JuNest is **not** to build a complete isolated environment but, conversely, is the ability to run programs as they were running natively from the host OS. Almost everything is shared @@ -110,7 +110,8 @@ used, see the [Usage](#usage) section below. Run JuNest installed programs directly from host OS --------------------------------------- -Installed programs can be accessible directly from host. +Installed programs can be accessible directly from host without +calling `junest` command. For instance, supposing the host OS is an Ubuntu distro you can directly run `pacman` by simply updating the `PATH` variable: diff --git a/VERSION b/VERSION index ee11304..704726e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.3.6 +7.3.7 diff --git a/lib/core/wrappers.sh b/lib/core/wrappers.sh index 184fca5..b3c63f3 100644 --- a/lib/core/wrappers.sh +++ b/lib/core/wrappers.sh @@ -11,12 +11,15 @@ function create_wrappers() { then continue fi + # Arguments inside a variable (i.e. `JUNEST_ARGS`) separated by quotes + # are not recognized normally unless using `eval`. More info here: + # https://github.com/fsquillace/junest/issues/262 cat < ${JUNEST_HOME}/usr/bin_wrappers/${file} #!/usr/bin/env bash JUNEST_ARGS=\${JUNEST_ARGS:-ns --fakeroot} -junest \${JUNEST_ARGS} -- ${file} "\$@" +eval junest \${JUNEST_ARGS[@]} -- ${file} "\$@" EOF chmod +x ${JUNEST_HOME}/usr/bin_wrappers/${file} done