Updates git init scripts
parent
79a4778c02
commit
fa131e0340
|
@ -84,7 +84,6 @@ apps/storybook/build-storybook.log
|
||||||
|
|
||||||
# Submodules
|
# Submodules
|
||||||
.gitmodules
|
.gitmodules
|
||||||
apps/api
|
|
||||||
apps/website
|
apps/website
|
||||||
apps/console
|
apps/console
|
||||||
apps/auth
|
apps/auth
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
./git-setup.sh api website console
|
./git-setup.sh website console
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# If no project name is given
|
# If no project name is given
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
# Display usage and stop
|
# Display usage and stop
|
||||||
echo "Usage: git-setup.sh <api,console,website>"
|
echo "Usage: git-setup.sh <console,website>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Get remote url to support either https or ssh
|
# Get remote url to support either https or ssh
|
||||||
|
@ -30,13 +30,7 @@ for module in "$@"; do
|
||||||
# We forcefully added the subdmoule which was in .gitignore, so unstage it.
|
# We forcefully added the subdmoule which was in .gitignore, so unstage it.
|
||||||
git restore --staged apps/$module
|
git restore --staged apps/$module
|
||||||
else
|
else
|
||||||
# If the module is the API, display a link to request access
|
|
||||||
if [ "$module" = "api" ]; then
|
|
||||||
echo "You don't have access to: '${module}' module. You can request access in: https://console.cal.com"
|
|
||||||
else
|
|
||||||
# If the module is not the API, display normal message
|
|
||||||
echo "You don't have access to: '${module}' module."
|
echo "You don't have access to: '${module}' module."
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
git restore --staged .gitmodules
|
git restore --staged .gitmodules
|
||||||
|
|
Loading…
Reference in New Issue