9 lines
237 B
Bash
9 lines
237 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
DIR="$(dirname "$0")"
|
||
|
|
||
|
if cargo "$@"; then
|
||
|
[ -d "$DIR/target/debug" ] && cp -r "$DIR/resources" "$DIR/target/debug/resources"
|
||
|
[ -d "$DIR/target/release" ] && cp -r "$DIR/resources" "$DIR/target/release/resources"
|
||
|
fi
|