Skip to content

Commit ac6cf80

Browse files
committed
! improve cp-into-docker-run: check require option -c/--container
1 parent 67c977f commit ac6cf80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/cp-into-docker-run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ while (($# > 0)); do
163163
esac
164164
done
165165

166+
[ -n "$container_name" ] ||
167+
usage 1 "No destination docker container name, specified by option -c/--container!"
168+
166169
if [ -n "${docker_workdir}" ]; then
167170
isAbsolutePath "$docker_workdir" ||
168171
die "docker workdir(-w/--workdir) must be absolute path: $docker_workdir"

0 commit comments

Comments
 (0)