fix STACK_DIR variable

This commit is contained in:
Scott Moser 2011-10-12 20:15:50 -04:00
parent 102e440e2b
commit df47967da4

View file

@ -65,7 +65,7 @@ if [[ $EUID -eq 0 ]]; then
>> /etc/sudoers.d/50_stack_sh )
echo "Copying files to stack user"
STACK_DIR="/home/stack/${PWD%/*}"
STACK_DIR="/home/stack/${PWD##*/}"
cp -r -f "$PWD" "$STACK_DIR"
chown -R stack "$STACK_DIR"
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then