Blame view

remove_image.sh 387 Bytes
3e470988   hmalti   First commit
1
2
3
4
5
6
7
8
9
10
11
12
  #!/bin/bash
  NOM_IMAGE_TO_REMOVE=$3;
  REPERTOIRE=${PWD}
  
  #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
  chmod -R 755 $REPERTOIRE/baleine
  rm $REPERTOIRE/baleine/Images/$NOM_IMAGE_TO_REMOVE.manifest
  rm $REPERTOIRE/$NOM_IMAGE_TO_REMOVE