diff --git a/dehydrate/test/build_dehydrate_test.sh b/dehydrate/test/build_dehydrate_test.sh index 9c5085d..aad0e66 100755 --- a/dehydrate/test/build_dehydrate_test.sh +++ b/dehydrate/test/build_dehydrate_test.sh @@ -11,7 +11,20 @@ rm -rf dehydrate_test_data # Build the test program - mount the entire project directory to access ../output/dehydrate docker run --rm -v "$PROJECT_DIR":/workdir -w /workdir/test gitea.jde.nz/public/dropshell-build-base:latest \ - g++ -std=c++23 -static dehydrate_test.cpp -o dehydrate_test + bash -c " + if [ -f dehydrate_test.cpp ]; then + g++ -std=c++23 -static dehydrate_test.cpp -o dehydrate_test + else + echo 'ERROR: dehydrate_test.cpp not found in current directory' + exit 1 + fi + " + +# Check if compilation succeeded +if [ ! -f "./dehydrate_test" ]; then + echo "Error: Failed to compile dehydrate_test" + exit 1 +fi # Run the test ./dehydrate_test \ No newline at end of file diff --git a/whatsdirty/whatsdirty b/whatsdirty/whatsdirty index d087646..b2d8244 100755 --- a/whatsdirty/whatsdirty +++ b/whatsdirty/whatsdirty @@ -291,8 +291,8 @@ if [ "$1" = "autocomplete" ]; then fi # Check if we're being called to show version -if [ "$1" = "version" ]; then - echo "whatsdirty 1.0.0" +if [ "$1" = "version" ] || [ "$1" = "--version" ] || [ "$1" = "-v" ] || [ "$1" = "v" ]; then + echo "1.0.1" exit 0 fi