mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add assert_vendor() sub-routine
This commit is contained in:
@@ -6,6 +6,12 @@ panic() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert_vendor() {
|
||||||
|
if [ $(basename $(pwd)) != 'vendor' ]; then
|
||||||
|
panic "Not in vendor directory!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
remove_windows_libraries() {
|
remove_windows_libraries() {
|
||||||
find . -type f -name '*.dll' | xargs rm -f
|
find . -type f -name '*.dll' | xargs rm -f
|
||||||
find . -type f -name '*.lib' | xargs rm -f
|
find . -type f -name '*.lib' | xargs rm -f
|
||||||
@@ -24,6 +30,7 @@ remove_linux_libraries() {
|
|||||||
|
|
||||||
case $OS in
|
case $OS in
|
||||||
Linux)
|
Linux)
|
||||||
|
assert_vendor
|
||||||
remove_windows_libraries
|
remove_windows_libraries
|
||||||
remove_macos_libraries
|
remove_macos_libraries
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user