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