Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rsync / ZIP not found #223

Open
dkjensen opened this issue Feb 8, 2022 · 1 comment
Open

Rsync / ZIP not found #223

dkjensen opened this issue Feb 8, 2022 · 1 comment

Comments

@dkjensen
Copy link

dkjensen commented Feb 8, 2022

I'm experiencing an issue where basic commands are not found when executing from within my shell script. Rsync and ZIP namely

#!/bin/sh

if [ $# -eq 0 ]
  then
    echo "No arguments supplied"
    exit
fi

... 
Environment variables
...

echo "Syncing files..."
rsync -rc --exclude-from="$PROJECT_PATH/.distignore" "$PROJECT_PATH/" "$DEST_PATH/" --delete --delete-excluded

echo "Generating zip file..."
cd "$BUILD_PATH" || exit
zip -q -r "${SLUG}.zip" "$SLUG/"
module.exports = {
  tagFormat: "${version}",
  branch: "master",
  plugins: [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    ["@semantic-release/npm", { 
      npmPublish: false 
    }],
    ["@semantic-release/exec", {
      "publishCmd": "chmod +x ./bin/build-zip.sh && ./bin/build-zip.sh ${nextRelease.version}"
    }],
    ["@semantic-release/github", {
      "assets": [
        {"path": "build/build.zip", "label": "Bundle"}
      ]
    }]
  ]
};

Is this perhaps a directory or permissions issue?

@yevon
Copy link

yevon commented Feb 25, 2024

I'm having similar problems with this, I'm unable to execute my script even when it is the same owner and with 777 permissions. It just says it is unable to find it. Why do you perform a chmod +x before calling the script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants