Shift pour ne pas repasser l'argument après

This commit is contained in:
Hippolyte Chauvin 2023-05-08 10:58:45 +02:00
parent c80b84c506
commit ac0a5bd169

View file

@ -1,5 +1,6 @@
#!/bin/sh -e #!/bin/sh -e
path="${1:-.}/$(date +'%Y_%m_%d')" path="${1:-.}/$(date +'%Y_%m_%d')"
shift
mkdir "$@" -p "$path" mkdir "$@" -p "$path"
echo "$path" echo "$path"