Skip to content

Instantly share code, notes, and snippets.

View wooddar's full-sized avatar

Hugo Darwood wooddar

View GitHub Profile
@fesor
fesor / script
Last active August 17, 2023 12:28
Jenkins: script for checking is directory has changed from last build
#!/bin/bash
DIR_PATH=$1
if [ ! -d "$DIR_PATH" ]; then
echo "Directory '$DIR_PATH' not exists"
exit 1
fi
if [ -z "$GIT_COMMIT" ]; then
echo "No current commit... fail"