File: cargo-update.sh

package info (click to toggle)
python-maturin 1.9.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,540 kB
  • sloc: python: 656; javascript: 93; sh: 55; makefile: 10
file content (9 lines) | stat: -rwxr-xr-x 188 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
for d in ./*; do
  if [ -d "$d" ]; then
    if [ -f "$d/Cargo.lock" ]; then
      cargo update --manifest-path "$d/Cargo.toml"
      echo "$d updated"
    fi
  fi
done