Skip to content

Commit 09351d6

Browse files
authored
Update directoryfix.sh
1 parent 48b67d9 commit 09351d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.templates/python/directoryfix.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
# Directoryfix for python
44

5+
#current user
6+
u=$(whoami)
7+
58
if [ ! -d ./volumes/python/app ]; then
69
sudo mkdir -p ./volumes/python/app
7-
sudo chown -R $(whoami):$(whoami) ./volumes/python
10+
sudo chown -R $u:$u ./volumes/python
811
echo 'print("hello world")' >./volumes/python/app/app.py
912

1013
fi

0 commit comments

Comments
 (0)