1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/contrib
Chenyang Yan a8ce4d47c3 dockerd-rootless.sh: Fix variable not double quotes cause unexpected behavior
```
$ cat test.sh

echo "orign value=$XDG_RUNTIME_DIR"

echo "1. with [ ] not quote ..."
[ -w $XDG_RUNTIME_DIR ]
echo "get 1 ret_code: $?"

echo "2. with [ ] and quote ..."
[ -w "$XDG_RUNTIME_DIR" ]
echo "get 2 ret_code: $?"

$ sh ./test.sh
orign value=
1. with [ ] not quote ...
get 1 ret_code: 0
2. with [ ] and quote ...
get 2 ret_code: 1

$ bash ./test.sh
orign value=
1. with [ ] not quote ...
get 1 ret_code: 0
2. with [ ] and quote ...
get 2 ret_code: 1
```

Signed-off-by: Chenyang Yan <memory.yancy@gmail.com>
2021-10-18 00:11:03 +08:00
..
apparmor AppArmor: add missing rules for running in userns 2019-09-30 16:17:13 +02:00
busybox Pin busybox to fixed version and verify sha256 2020-04-03 09:55:26 +02:00
docker-device-tool Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
gitdm run shfmt 2020-03-03 12:27:49 +09:00
httpserver Remove solaris files 2017-10-24 15:39:34 -04:00
init Move containerd.service from Requires= to Wants= 2021-07-12 10:06:35 +00:00
nnp-test Dockerfile: frozen images: update to bullseye, remove buildpack-dep 2021-08-20 18:23:06 +02:00
syntax Remove vim syntax files 2020-01-14 13:01:18 -04:00
syscall-test Dockerfile: frozen images: update to bullseye, remove buildpack-dep 2021-08-20 18:23:06 +02:00
udev
check-config.sh Updated check_config 2021-07-09 09:24:24 +05:30
dockerd-rootless-setuptool.sh Merge pull request #42077 from WhyNotHugo/patch-1 2021-05-03 10:36:03 -07:00
dockerd-rootless.sh dockerd-rootless.sh: Fix variable not double quotes cause unexpected behavior 2021-10-18 00:11:03 +08:00
dockerize-disk.sh run shfmt 2020-03-03 12:27:49 +09:00
download-frozen-image-v2.sh Allow download-frozen-images to work without go 2020-09-28 19:10:16 +00:00
editorconfig added editorconfig 2016-10-20 22:18:16 -02:00
mac-install-bundle.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-alpine.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-arch-pacman.conf
mkimage-arch.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-archarm-pacman.conf Fixed arm arch image maker to support arm versions other than 7 2016-07-10 18:46:35 -07:00
mkimage-crux.sh run shfmt 2020-03-03 12:27:49 +09:00
mkimage-pld.sh add script to make base image for PLD Linux 2016-05-31 09:20:51 +03:00
mkimage-yum.sh there is no file named mkimage-rinse.sh in contrib floder, should delete 2021-06-28 17:36:34 +08:00
nuke-graph-directory.sh Update contrib/nuke-graph-directory.sh 2021-04-09 10:05:35 +10:00
README.md Add .md extension to readme for markdown rendering 2016-02-24 20:39:46 +00:00

The contrib directory contains scripts, images, and other helpful things which are not part of the core docker distribution. Please note that they could be out of date, since they do not receive the same attention as the rest of the repository.