· 7 years ago · Feb 20, 2019, 01:26 AM
1possible bashism in toolbox line 21 (should be >word 2>&1):
2base_toolbox_command=$(basename "$0" 2>&42)
3possible bashism in toolbox line 23 (should be '.', not 'source'):
4source /etc/os-release
5possible bashism in toolbox line 62 (should be >word 2>&1):
6 [ "$1" != "" ] && [ $1 -eq $1 2>&42 ]
7possible bashism in toolbox line 73 (should be >word 2>&1):
8 rm --force --recursive "$directory" 2>&42
9possible bashism in toolbox line 77 (should be >word 2>&1):
10 if ! touch "$directory/spinner-start" 2>&42; then
11possible bashism in toolbox line 83 (should be >word 2>&1):
12 tput civis 2>&42
13possible bashism in toolbox line 87 (should be >word 2>&1):
14 echo "$spinner_animation" | tr " " "\n" 2>&42 | while read frame; do
15possible bashism in toolbox line 103 (should be >word 2>&1):
16 tput cnorm 2>&42
17possible bashism in toolbox line 105 (should be >word 2>&1):
18 if ! touch "$directory/spinner-stop" 2>&42; then
19possible bashism in toolbox line 119 (should be >word 2>&1):
20 if ! rm "$directory/spinner-start" 2>&42; then
21possible bashism in toolbox line 128 (should be >word 2>&1):
22 rm --force --recursive "$directory" 2>&42
23possible bashism in toolbox line 144 (should be >word 2>&1):
24 if ! $prefix_sudo buildah run $working_container_name -- \
25 sh -c 'rmdir /home && mkdir -m 0755 -p /var/home && ln -s var/home /home' 2>&42; then
26possible bashism in toolbox line 145 (should be >word 2>&1):
27 $prefix_sudo buildah rm $working_container_name >/dev/null 2>&42
28possible bashism in toolbox line 158 ($UID should be "$(id -ru)"):
29 if ! $prefix_sudo buildah run $working_container_name -- useradd \
30 --home-dir $HOME \
31 --no-create-home \
32 --shell $SHELL \
33 --uid $UID \
34 --groups wheel \
35 $USER \
36 >/dev/null 2>&42; then
37possible bashism in toolbox line 158 (should be >word 2>&1):
38 if ! $prefix_sudo buildah run $working_container_name -- useradd \
39 --home-dir $HOME \
40 --no-create-home \
41 --shell $SHELL \
42 --uid $UID \
43 --groups wheel \
44 $USER \
45 >/dev/null 2>&42; then
46possible bashism in toolbox line 159 ($UID should be "$(id -ru)"):
47 echo "$base_toolbox_command: failed to create user $USER with UID $UID"
48possible bashism in toolbox line 163 (should be >word 2>&1):
49 if ! $prefix_sudo buildah run $working_container_name -- passwd -d $USER >/dev/null 2>&42; then
50possible bashism in toolbox line 168 (should be >word 2>&1):
51 if ! $prefix_sudo buildah run $working_container_name -- passwd -d root >/dev/null 2>&42; then
52possible bashism in toolbox line 173 (should be >word 2>&1):
53 if ! $prefix_sudo buildah config --volume $HOME $working_container_name >/dev/null 2>&42; then
54possible bashism in toolbox line 178 (should be >word 2>&1):
55 if ! $prefix_sudo buildah config --volume $XDG_RUNTIME_DIR $working_container_name >/dev/null 2>&42; then
56possible bashism in toolbox line 183 (should be >word 2>&1):
57 if ! $prefix_sudo buildah config --volume $dbus_system_bus_path $working_container_name >/dev/null 2>&42; then
58possible bashism in toolbox line 188 (should be >word 2>&1):
59 if ! $prefix_sudo buildah config --volume /dev/dri $working_container_name >/dev/null 2>&42; then
60possible bashism in toolbox line 193 (should be >word 2>&1):
61 if ! $prefix_sudo buildah config --volume /dev/fuse $working_container_name >/dev/null 2>&42; then
62possible bashism in toolbox line 198 (should be >word 2>&1):
63 if ! $prefix_sudo buildah config --user $USER $working_container_name >/dev/null 2>&42; then
64possible bashism in toolbox line 203 (should be >word 2>&1):
65 if ! $prefix_sudo buildah config --workingdir $HOME $working_container_name >/dev/null 2>&42; then
66possible bashism in toolbox line 221 (should be >word 2>&1):
67 dbus_system_bus_path=$(echo $dbus_system_bus_address | cut --delimiter = --fields 2 2>&42)
68possible bashism in toolbox line 222 (should be >word 2>&1):
69 dbus_system_bus_path=$(readlink --canonicalize $dbus_system_bus_path 2>&42)
70possible bashism in toolbox line 224 (should be >word 2>&1):
71 echo "$base_toolbox_command: checking if image $toolbox_image already exists" >&42
72possible bashism in toolbox line 226 (should be >word 2>&1):
73 if ! $prefix_sudo buildah inspect --type image $toolbox_image >/dev/null 2>&42; then
74possible bashism in toolbox line 227 (should be >word 2>&1):
75 echo "$base_toolbox_command: trying to create working container $working_container_name" >&42
76possible bashism in toolbox line 228 (should be >word 2>&1):
77 echo "$base_toolbox_command: looking for image localhost/$base_toolbox_image" >&42
78possible bashism in toolbox line 232 (should be >word 2>&1):
79 if ! $prefix_sudo buildah from \
80 --name $working_container_name \
81 localhost/$base_toolbox_image >/dev/null 2>&42; then
82possible bashism in toolbox line 233 (should be >word 2>&1):
83 echo "$base_toolbox_command: looking for image $registry/$fgc/$base_toolbox_image" >&42
84possible bashism in toolbox line 235 (should be >word 2>&1):
85 if spinner_directory=$(mktemp --directory --tmpdir $spinner_template 2>&42); then
86possible bashism in toolbox line 247 (should be >word 2>&1):
87 $prefix_sudo buildah from \
88 --name $working_container_name \
89 $registry/$fgc/$base_toolbox_image >/dev/null 2>&42
90possible bashism in toolbox line 260 (should be >word 2>&1):
91 echo "$base_toolbox_command: trying to configure working container $working_container_name" >&42
92possible bashism in toolbox line 262 (should be >word 2>&1):
93 if spinner_directory=$(mktemp --directory --tmpdir $spinner_template 2>&42); then
94possible bashism in toolbox line 280 (should be >word 2>&1):
95 $prefix_sudo buildah rm $working_container_name >/dev/null 2>&42
96possible bashism in toolbox line 284 (should be >word 2>&1):
97 echo "$base_toolbox_command: trying to create image $toolbox_image" >&42
98possible bashism in toolbox line 286 (should be >word 2>&1):
99 if spinner_directory=$(mktemp --directory --tmpdir $spinner_template 2>&42); then
100possible bashism in toolbox line 296 (should be >word 2>&1):
101 $prefix_sudo buildah commit --rm $working_container_name $toolbox_image >/dev/null 2>&42
102possible bashism in toolbox line 304 (should be >word 2>&1):
103 $prefix_sudo buildah rm $working_container_name >/dev/null 2>&42
104possible bashism in toolbox line 309 (should be >word 2>&1):
105 echo "$base_toolbox_command: created image $toolbox_image" >&42
106possible bashism in toolbox line 312 (should be >word 2>&1):
107 echo "$base_toolbox_command: checking if container $toolbox_container already exists" >&42
108possible bashism in toolbox line 314 (should be >word 2>&1):
109 if $prefix_sudo podman inspect --type container $toolbox_container >/dev/null 2>&42; then
110possible bashism in toolbox line 319 (should be >word 2>&1):
111 total_ram=$(awk '( $1 == "MemTotal:" ) { print $2 }' /proc/meminfo 2>&42) # kibibytes
112possible bashism in toolbox line 328 (should be >word 2>&1):
113 echo "$base_toolbox_command: trying to create container $toolbox_container" >&42
114possible bashism in toolbox line 330 (should be >word 2>&1):
115 if spinner_directory=$(mktemp --directory --tmpdir $spinner_template 2>&42); then
116possible bashism in toolbox line 359 ($UID should be "$(id -ru)"):
117 $prefix_sudo podman create \
118 --group-add wheel \
119 --hostname toolbox \
120 --interactive \
121 --name $toolbox_container \
122 --network host \
123 --privileged \
124 --security-opt label=disable \
125 --tmpfs /dev/shm:size=$tmpfs_size \
126 --tty \
127 --uidmap $UID:0:1 \
128 --uidmap 0:1:$UID \
129 --uidmap $uid_plus_one:$uid_plus_one:$max_minus_uid \
130 --volume $HOME:$HOME:rslave \
131 --volume $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
132 --volume $dbus_system_bus_path:$dbus_system_bus_path \
133 --volume /dev/dri:/dev/dri \
134 --volume /dev/fuse:/dev/fuse \
135 $toolbox_image \
136 /bin/sh >/dev/null 2>&42
137possible bashism in toolbox line 359 (should be >word 2>&1):
138 $prefix_sudo podman create \
139 --group-add wheel \
140 --hostname toolbox \
141 --interactive \
142 --name $toolbox_container \
143 --network host \
144 --privileged \
145 --security-opt label=disable \
146 --tmpfs /dev/shm:size=$tmpfs_size \
147 --tty \
148 --uidmap $UID:0:1 \
149 --uidmap 0:1:$UID \
150 --uidmap $uid_plus_one:$uid_plus_one:$max_minus_uid \
151 --volume $HOME:$HOME:rslave \
152 --volume $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
153 --volume $dbus_system_bus_path:$dbus_system_bus_path \
154 --volume /dev/dri:/dev/dri \
155 --volume /dev/fuse:/dev/fuse \
156 $toolbox_image \
157 /bin/sh >/dev/null 2>&42
158possible bashism in toolbox line 371 (should be >word 2>&1):
159 echo "$base_toolbox_command: created container $toolbox_container" >&42
160possible bashism in toolbox line 379 (should be >word 2>&1):
161 echo "$base_toolbox_command: trying to start container $toolbox_container" >&42
162possible bashism in toolbox line 381 (should be >word 2>&1):
163 if ! $prefix_sudo podman start $toolbox_container >/dev/null 2>&42; then
164possible bashism in toolbox line 390 (should be >word 2>&1):
165 echo "$base_toolbox_command: looking for $SHELL in container $toolbox_container" >&42
166possible bashism in toolbox line 392 (should be >word 2>&1):
167 if $prefix_sudo podman exec $toolbox_container test -f $SHELL 2>&42; then
168possible bashism in toolbox line 395 (should be >word 2>&1):
169 echo "$base_toolbox_command: $SHELL not found in $toolbox_container; using $shell_to_exec instead" >&42
170possible bashism in toolbox line 398 (should be >word 2>&1):
171 echo "$base_toolbox_command: trying to exec $shell_to_exec in container $toolbox_container" >&42
172possible bashism in toolbox line 427 (should be >word 2>&1):
173 $prefix_sudo podman exec \
174 --env COLORTERM=$COLORTERM \
175 --env DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS \
176 $set_dbus_system_bus_address \
177 --env DESKTOP_SESSION=$DESKTOP_SESSION \
178 --env DISPLAY=$DISPLAY \
179 --env LANG=$LANG \
180 --env SHELL=$SHELL \
181 --env SSH_AUTH_SOCK=$SSH_AUTH_SOCK \
182 --env TERM=$TERM \
183 --env VTE_VERSION=$VTE_VERSION \
184 --env XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP \
185 --env XDG_DATA_DIRS=$XDG_DATA_DIRS \
186 --env XDG_MENU_PREFIX=$XDG_MENU_PREFIX \
187 --env XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
188 --env XDG_SEAT=$XDG_SEAT \
189 --env XDG_SESSION_DESKTOP=$XDG_SESSION_DESKTOP \
190 --env XDG_SESSION_ID=$XDG_SESSION_ID \
191 --env XDG_SESSION_TYPE=$XDG_SESSION_TYPE \
192 --env XDG_VTNR=$XDG_VTNR \
193 --interactive \
194 --tty \
195 $toolbox_container \
196 capsh --caps="" -- -c 'cd "$1"; export PS1="$2"; shift 2; exec "$@"' \
197 /bin/sh \
198 "$PWD" \
199 "$toolbox_prompt" \
200 $shell_to_exec -l 2>&42
201possible bashism in toolbox line 437 ($'...' should be "$(printf '...')"):
202 output=$($prefix_sudo podman images \
203 --filter "label=com.redhat.component=fedora-toolbox" \
204 --format "{{.ID}} {{.Repository}}:{{.Tag}} {{.Created}}" 2>&42 \
205 | sed "s/ \{2,\}/\t/g" 2>&42 \
206 | column --separator $'\t' --table --table-columns "IMAGE ID,IMAGE NAME,CREATED")
207possible bashism in toolbox line 437 (should be >word 2>&1):
208 output=$($prefix_sudo podman images \
209 --filter "label=com.redhat.component=fedora-toolbox" \
210 --format "{{.ID}} {{.Repository}}:{{.Tag}} {{.Created}}" 2>&42 \
211 | sed "s/ \{2,\}/\t/g" 2>&42 \
212 | column --separator $'\t' --table --table-columns "IMAGE ID,IMAGE NAME,CREATED")
213possible bashism in toolbox line 440 (echo -e):
214 echo -e "${LBC}Images created by toolbox${NC}"
215possible bashism in toolbox line 456 ($'...' should be "$(printf '...')"):
216 output=$($prefix_sudo podman ps \
217 --all \
218 --filter "label=com.redhat.component=fedora-toolbox" \
219 --format "{{.ID}} {{.Names}} {{.Created}} {{.Status}} {{.Image}}" 2>&42 \
220 | sed "s/ \{2,\}/\t/g" 2>&42 \
221 | column \
222 --separator $'\t' \
223 --table \
224 --table-columns "CONTAINER ID,CONTAINER NAME,CREATED,STATUS,IMAGE NAME" 2>&42)
225possible bashism in toolbox line 456 (should be >word 2>&1):
226 output=$($prefix_sudo podman ps \
227 --all \
228 --filter "label=com.redhat.component=fedora-toolbox" \
229 --format "{{.ID}} {{.Names}} {{.Created}} {{.Status}} {{.Image}}" 2>&42 \
230 | sed "s/ \{2,\}/\t/g" 2>&42 \
231 | column \
232 --separator $'\t' \
233 --table \
234 --table-columns "CONTAINER ID,CONTAINER NAME,CREATED,STATUS,IMAGE NAME" 2>&42)
235possible bashism in toolbox line 459 (echo -e):
236 echo -e "${LBC}Containers created by toolbox${NC}"
237possible bashism in toolbox line 460 (should be >word 2>&1):
238 echo "$output" | head --lines 1 2>&42
239possible bashism in toolbox line 462 (should be >word 2>&1):
240 echo "$output" | tail --lines +2 2>&42
241possible bashism in toolbox line 466 (should be >word 2>&1):
242 container_id=$(echo $container | cut --delimiter " " --fields 1 2>&42)
243possible bashism in toolbox line 467 (should be >word 2>&1):
244 is_running=$($prefix_sudo podman inspect $container_id --format "{{.State.Running}}" 2>&42)
245possible bashism in toolbox line 469 (echo -e):
246 echo -e "${LGC}$container${NC}"
247possible bashism in toolbox line 536 (should be >word 2>&1):
248 arg=$(echo $1 | sed 's/^F\|^f//' 2>&42)
249possible bashism in toolbox line 542 (should be >word 2>&1):
250 if [ $arg -le 0 2>&42 ]; then