#!/bin/sh PRODUCTS=$HOME/Products SRCDIR=$(pwd) BASE=$(basename "$SRCDIR") OUTPUT="$PRODUCTS/$BASE" if [ -d "$OUTPUT" ]; then echo $OUTPUT fi