1 #!/bin/sh 2 # Print a directory to use for Stow 3 if [ $# -gt 0 ]; then 4 dir=$(realpath "$1") 5 else 6 dir=$PWD 7 fi 8 echo "/usr/local/stow/$(basename "$dir")"