Browse Source

changed "$0" to "$(basename $0)" in pdm-* scripts usage string

feature/startup-from-labels
Mario Alegre 5 years ago
parent
commit
ebb2d7a4c0
  1. 2
      bin/pdm-build
  2. 2
      bin/pdm-launch
  3. 2
      bin/pdm-shell

2
bin/pdm-build

@ -17,7 +17,7 @@ DEFINE_boolean 'squash' false 'squash newly built layers into a single new layer
DEFINE_boolean 'debug' false "Don't delete temporary container on build fail" 'd' DEFINE_boolean 'debug' false "Don't delete temporary container on build fail" 'd'
DEFINE_string 'tag' 'latest' 'Tag (other than date) to assign to the image' 't' DEFINE_string 'tag' 'latest' 'Tag (other than date) to assign to the image' 't'
FLAGS_HELP="Usage: $0 [-sd] [-t tag] [directory] [name] FLAGS_HELP="Usage: $(basename $0) [-sd] [-t tag] [directory] [name]
Builds an image from the Containerfile and (optionally) Systemdfile in the Builds an image from the Containerfile and (optionally) Systemdfile in the
specified directory, and tags the image with the given name. If no directory specified directory, and tags the image with the given name. If no directory

2
bin/pdm-launch

@ -6,7 +6,7 @@ DEFINE_boolean 'overwrite' false 'Overwrite container if one with same name alre
DEFINE_boolean 'config' false 'Automatically configure container with deploy options stored in image metadata.' 'c' DEFINE_boolean 'config' false 'Automatically configure container with deploy options stored in image metadata.' 'c'
DEFINE_string 'label' 'deployopts' 'Image metadata label from which to get the deploy options.' 'l' DEFINE_string 'label' 'deployopts' 'Image metadata label from which to get the deploy options.' 'l'
FLAGS_HELP="Usage: $0 [-oc] [-d label] [image] [name] FLAGS_HELP="Usage: $(basename $0) [-oc] [-d label] [image] [name]
Creates and starts a container from the specified image, and assigns it the Creates and starts a container from the specified image, and assigns it the
specified name. If no image argument is given, uses the current working specified name. If no image argument is given, uses the current working

2
bin/pdm-shell

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [[ -z $1 || $1 == "-h" || $1 == "--help" ]]; then if [[ -z $1 || $1 == "-h" || $1 == "--help" ]]; then
echo "Usage: $0 container echo "Usage: $(basename $0) container
Start a shell on the given container, and connect to it." Start a shell on the given container, and connect to it."
exit 1 exit 1

Loading…
Cancel
Save