Commit Graph
36 Commits
Author SHA1 Message Date
Luca Di Maio fdfe3599ab install: fix some formatting
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-08-17 00:53:54 +02:00
Gregory Oakes 8121bbd309 install: use either wget or curl (#376)
Some environments such as Ubuntu 22.04 don't have curl by default. Use
wget if curl is unavailable.
2022-08-17 00:44:01 +02:00
Luca Di Maio 7d37aac252 Fix install
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-08-01 21:51:02 +02:00
Luca Di Maio 8efcc40dd2 install: add missing help entry for --next/-N flag
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-07-18 07:52:45 +02:00
Mišo Barišić 3dec4089e6 install/uninstall: remove deprecated path feature (#356)
install/uninstall: remove deprecated path feature (#356)

Signed-off-by: Mišo Barišić <me@misobarisic.com>
2022-07-18 07:45:21 +02:00
Adam GaiaandAdam Gaia 17b205d233 install: Replace call to 'rev | cut' with 'grep' (#342)
This modifies the parsing of $release_name from $release_ver by
grepping for a semantic version with a '.tar.gz' extension.

The prior method used 'rev | cut | rev' to isolate $release_name
as the last field of $release_ver. The rev tool is not installed
by default on some machines.

Co-authored-by: Adam Gaia <git@agaia.dev>
2022-06-28 15:52:50 +02:00
Luca Di Maio 8af27039d6 install: add --next flag to install latest commit from git
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-06-10 10:44:32 +02:00
Nathan Chancellor 4d8c91df97 install: Stop calling git (#261)
As pointed out by Mišo Barišić in #260, this call might fail when
running 'sudo ./install' because of the fix for CVE-2022-24765, which is
present in git 2.36.0 and certain maintenence releases from 2.30 to
2.35. This variable has been unused in this block since 68df9d2, where a
proper version value was used, rather than being dynamically updated by
'./install'.

Link: https://lore.kernel.org/xmqqv8veb5i6.fsf@gitster.g/
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
2022-05-05 23:57:19 +02:00
89luca89 e2d3fe2db7 all: formatting and readability fixes 2022-04-25 12:30:42 +02:00
89luca89 82ec8b9881 Lint: use single tools instead of importing an action; reformat all to follow the style 2022-03-30 11:05:21 +02:00
Mišo Barišić 7960dbdf07 Prefix install/uninstall option (#190)
This fixes #184 
right now --path/-p is DEPRECATED.
Gradually switch to a more ubiquitous  use of --prefix/-P
2022-02-26 11:43:59 +01:00
Nathan Chancellor ca06a7134f install: Remove permissions check and dest_path creation (#180)
1caa478c52 tried to improve the writeability check to avoid false
positives, such as the one reported in a DistroWatch.com article.
However, it is still possible to break this check by having the
destination and its parent directory not exist:

$ ./install -p $HOME/tmp/directory-does-not-exist/bin
Cannot write into /home/nathan/tmp/directory-does-not-exist/bin, permission denied.

The script already uses 'install -D', which will create the target
directory if it does not exist, so trying to create dest_path
preemptively only increases the complexity of install and risks
introducing false positive errors like above.

Instead, just check the calls to install and print a message about
potential issues with permissions if they fail.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
2022-02-21 18:26:38 +01:00
Mišo Barišić 6ff2bc481d install: remove redundant dot (#178) 2022-02-21 14:26:40 +01:00
89luca89 fb94ef0d09 install: inform user about PATH at end of installation #177 2022-02-21 10:48:17 +01:00
89luca89 1caa478c52 install: add check for dest_path, ask for creation if it does not exist #177 2022-02-21 10:47:53 +01:00
89luca89 a0e6148f70 install/uninstall: add some comments 2022-02-11 22:57:56 +01:00
Mišo Barišić c5b5a15282 install: conditional default install path (#167) 2022-02-11 22:51:21 +01:00
89luca89 28848d487e install/uninstall: use install in place of cp+chmod, improve uninstallation process 2022-01-14 19:12:42 +01:00
89luca89 407c4d367d install/uninstall: do not break compatibility with old installers 2022-01-13 19:51:21 +01:00
89luca89 91f5c5b4d6 install: fix permission check 2022-01-13 19:25:56 +01:00
Mišo Barišićand89luca89 b1426f31c6 Create Manuals (#99)
* Create distrobox-create manpage. Include manpage in the install script

Co-authored-by: 89luca89 <luca.dimaio1@gmail.com>
2022-01-13 19:23:12 +01:00
Alessio 317caf8ba5 rm -rf instead of rm -f (#114)
Should solve #113
2022-01-10 23:05:42 +01:00
Luca Di Maio 4eb724ce38 Feature/unify commands (#77)
* list: add functionality to list running or created distroboxes

* rm: add functionality remove created distroboxes

* main: add wrapper to use distrobox commands without hyphens #59

* main: improve argument handling, allow only commands designed to work on host

* install: fix to include plain distrobox command

* Update README to include new commands
2021-12-31 16:42:31 +01:00
AlessioandAlessio 0775d04f50 Add license header and SPDX-License-Identifier (#58)
* Add license header and SPDX-License-Identifier
* Copyright line

Co-authored-by: Alessio <alciregi@fedoraproject.org>
2021-12-31 01:02:46 +01:00
89luca89 68df9d2216 all: bump version to 1.2.2 2021-12-21 18:28:04 +01:00
89luca89 3a561e5400 improve help outputs 2021-12-10 09:28:16 +01:00
89luca89 da70f3b653 replace echo with printf and improve outputs 2021-12-10 09:08:06 +01:00
89luca89 29def9daf8 s/folder/directory/g 2021-12-09 02:07:39 +01:00
89luca89 82d9d34267 install: fix version extract 2021-12-08 17:09:12 +01:00
89luca89 8de70d9a55 Add version inside script, Fix #9 2021-12-08 16:31:36 +01:00
Luca Di Maio 684aaabc21 init: check if file exists before linking and link it's realpath (#20)
* init: check if file exists before linking and link it's realpath
* Revert commit: 5aaef54043
2021-12-08 11:10:13 +01:00
89luca89 1b253d47d0 install: fix added github actions folder removal 2021-12-05 23:37:35 +01:00
89luca89 5aaef54043 docs: add license header to files, Fix #10 2021-12-05 16:19:45 +01:00
89luca89 3314d160c7 Fix variable quoting 2021-12-04 17:07:35 +01:00
Luca Di Maio 99b187fe2e Fix mount routine (#5)
* create: check that a folder exists before adding volume in podman

* install: fix basedir chmod

* create: let distrobox-export path to be optional

* create: improve error message for missing distrobox-init

* podman: when we use verbose, also podman should be verbose

* arguments: use also full word for verbose

* README: add brief explanation of all the tools
2021-12-02 19:54:01 +01:00
89luca89 66ae2c5846 Add install script and installation instructions 2021-12-02 00:06:48 +01:00