fix STACK_DIR variable
This commit is contained in:
parent
102e440e2b
commit
df47967da4
1 changed files with 1 additions and 1 deletions
2
stack.sh
2
stack.sh
|
@ -65,7 +65,7 @@ if [[ $EUID -eq 0 ]]; then
|
||||||
>> /etc/sudoers.d/50_stack_sh )
|
>> /etc/sudoers.d/50_stack_sh )
|
||||||
|
|
||||||
echo "Copying files to stack user"
|
echo "Copying files to stack user"
|
||||||
STACK_DIR="/home/stack/${PWD%/*}"
|
STACK_DIR="/home/stack/${PWD##*/}"
|
||||||
cp -r -f "$PWD" "$STACK_DIR"
|
cp -r -f "$PWD" "$STACK_DIR"
|
||||||
chown -R stack "$STACK_DIR"
|
chown -R stack "$STACK_DIR"
|
||||||
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then
|
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue