Skip to content

Commit 97e7ed8

Browse files
committed
'do' is a reserved bash keyword so renamed func to _do
1 parent 698778c commit 97e7ed8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

assets/fs/etc/skel/profile.d/cfg_from_skel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# do we care that all virtual users within that container
1313
# share these keys? (Well, I don't at least).
1414
#
15-
do() {
15+
_do() {
1616
local files=".gitconfig .aws .ssh"
1717
local h=$HOME
1818
local uid=$(id -u)
@@ -22,11 +22,11 @@ do() {
2222
for f in $files; do
2323
skel=/etc/skel/$f
2424
if [[ ! -e $h/$f ]] && [[ -e $skel ]]; then
25-
echo "INFO: ... seeding $h from $skel
25+
echo "INFO: ... seeding $h from $skel"
2626
su-exec root cp -a $skel $h/
2727
chown -R $uid:$gid $h/$f
2828
fi
2929
done
3030
}
31-
do
32-
unset do
31+
_do
32+
unset _do

0 commit comments

Comments
 (0)