File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ We currently only offer these for x86-64 systems.
52
52
We recommend installing sudo-rs and su-s in your ` /usr/local ` hierarchy so it can co-exist with
53
53
your existing sudo installation. You can achieve this using the commands:
54
54
``` sh
55
- sudo tar -C /usr/local -xvf sudo-VERSION .tar.gz
55
+ sudo tar -C /usr/local -xvf sudo-0.2.6 .tar.gz
56
56
```
57
57
and for su-rs:
58
58
``` sh
59
- sudo tar -C /usr/local -xvf su-VERSION .tar.gz
59
+ sudo tar -C /usr/local -xvf su-0.2.6 .tar.gz
60
60
```
61
61
This will install sudo-rs and su-rs in ` /usr/local/bin ` using the usual commands ` sudo ` and ` su ` ; it
62
62
will also install our version of ` visudo ` in that location.
Original file line number Diff line number Diff line change 27
27
sed -i ' s/^version\s*=\s*".*"/version = "' " $NEW_VERSION " ' "/' " $PROJECT_DIR /Cargo.toml"
28
28
fi
29
29
30
+ echo " Updating version in README.md installation instructions"
31
+ sed -i ' s/sudo-\(VERSION\|[0-9]\+\.[0-9]\+\.[0-9]\+\)\.tar\.gz/sudo-' " $NEW_VERSION " ' \.tar\.gz/g' " $PROJECT_DIR /README.md"
32
+ sed -i ' s/su-\(VERSION\|[0-9]\+\.[0-9]\+\.[0-9]\+\)\.tar\.gz/su-' " $NEW_VERSION " ' \.tar\.gz/g' " $PROJECT_DIR /README.md"
33
+
30
34
echo " Updating version in man pages"
31
35
sed -i ' s/^title: SU(1) sudo-rs .*/title: SU(1) sudo-rs ' " $NEW_VERSION " ' | sudo-rs/' " $PROJECT_DIR " /docs/man/su.1.md
32
36
sed -i ' s/^title: SUDO(8) sudo-rs .*/title: SUDO(8) sudo-rs ' " $NEW_VERSION " ' | sudo-rs/' " $PROJECT_DIR " /docs/man/sudo.8.md
You can’t perform that action at this time.
0 commit comments