123456789101112131415161718192021 |
- #!/bin/bash
- # Define the destination directory
- DESTINATION="E:/golang/bokoFS/src"
- # Remove the destination directory if it exists
- if [ -d "$DESTINATION" ]; then
- rm -rf "$DESTINATION"
- fi
- # Create the destination directory
- mkdir -p "$DESTINATION"
- # Copy all files and directories from the current directory to the destination
- cp -r ./* "$DESTINATION"
- # Remove ./tmp, ./config, and ./test from the destination if they exist
- rm -rf "$DESTINATION/tmp" "$DESTINATION/config" "$DESTINATION/test"
- # Remove the bokofsd.exe or bokofsd binary executable from the destination if they exist
- rm -f "$DESTINATION/bokofsd.exe" "$DESTINATION/bokofsd" "$DESTINATION/release.sh" "$DESTINATION/autopush.sh" "$DESTINATION/README.md"
|