Blame view

remove_image.sh 368 Bytes
3e470988   hmalti   First commit
1
2
  #!/bin/bash
  NOM_IMAGE_TO_REMOVE=$3;
3e470988   hmalti   First commit
3
4
5
6
7
8
  
  #vérification que l'utilisateur donne bien un nom à l'image
  if [[ -z "$NOM_IMAGE_TO_REMOVE" ]]; then 
    echo "Il faut donner le nom de l'image ! Relancez la commande avec les bons arguments."
    exit
  fi
b1087939   hmalti   Ajout commandes
9
10
11
  chmod -R 755 $PATH_MANIFEST
  rm $PATH_MANIFEST/images/$NOM_IMAGE_TO_REMOVE.manifest
  rm $PATH_BALEINE/images/$NOM_IMAGE_TO_REMOVE