Skip to content

Commit

Permalink
'do' is a reserved bash keyword so renamed func to _do
Browse files Browse the repository at this point in the history
  • Loading branch information
jinal--shah committed Apr 14, 2017
1 parent 698778c commit 97e7ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/fs/etc/skel/profile.d/cfg_from_skel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# do we care that all virtual users within that container
# share these keys? (Well, I don't at least).
#
do() {
_do() {
local files=".gitconfig .aws .ssh"
local h=$HOME
local uid=$(id -u)
Expand All @@ -22,11 +22,11 @@ do() {
for f in $files; do
skel=/etc/skel/$f
if [[ ! -e $h/$f ]] && [[ -e $skel ]]; then
echo "INFO: ... seeding $h from $skel
echo "INFO: ... seeding $h from $skel"
su-exec root cp -a $skel $h/
chown -R $uid:$gid $h/$f
fi
done
}
do
unset do
_do
unset _do

0 comments on commit 97e7ed8

Please sign in to comment.