code / scripts

Lines748 Shell528 Python72 Lua67 Bourne Again Shell62 make15
1 others 4
Markdown4
(8 lines)
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")"